简体   繁体   English

如何正确地将 GIS shapefile 转换为道路网络?

[英]How to properly convert GIS shapefile to a road network?

At the outset, let me just add that I am using Anylogic for the first time, please be understanding.首先,我只是补充一下,我是第一次使用 Anylogic,请理解。
I have strange problem with conversion GIS.shp file to road network.我在将 GIS.shp 文件转换为道路网络时遇到了奇怪的问题。

I follow the directions in the documentation (I'm trying to do exactly the same as in the documentation example):我按照文档中的说明进行操作(我正在尝试与文档示例中的完全相同):
https://anylogic.help/markup/converting-roads.html https://anylogic.help/markup/converting-roads.html


My GIS map before conversion:我的 GIS map 转换前: 在此处输入图像描述

My GIS map after conversion:转换后我的 GIS map: 在此处输入图像描述


As you can see, Anylogic generated a lot of road networks for me.如你所见,Anylogic 为我生成了很多道路网络。 It should all be in one road network.它应该都在一个道路网络中。 For this reason, there are no intersections and this is the biggest problem.因此,没有交叉点,这是最大的问题。 It does not generate intersections at all, but joints these roads somehow artificially...它根本不会产生交叉路口,而是以某种方式人为地将这些道路连接起来......

在此处输入图像描述


Can anyone tell me what I am doing wrong?谁能告诉我我做错了什么? Why no intersections are generated and everything is thrown into separate road networks?为什么没有产生交叉路口,一切都被扔进单独的道路网络? In the example from the documentation, the intersections have been generated.在文档中的示例中,已生成交叉点。


I am using Anylogic Professional 30 days trial.我正在使用 Anylogic Professional 30 天试用版。 Previously I was using the Personal Learning Edition version and there was exactly the same problem.以前我用的是个人学习版,也有同样的问题。

You are not doing anything wrong.你没有做错任何事。 It is caused by the shape file structure.这是由形状文件结构引起的。 AnyLogic can only interpret what it gets and if the data is not formatted correctly, ie road paths are not actually connected in the.shp file, it will create separate networks. AnyLogic 只能解释它得到的信息,如果数据格式不正确,即道路路径实际上没有在.shp 文件中连接,它将创建单独的网络。

So either adjust the shape file or manually combine the networks, there is no other way, afaik.所以要么调整形状文件,要么手动组合网络,没有别的办法,afaik。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM