Importing vector “.shp” file in NetLogo

浪尽此生 提交于 2021-01-28 06:54:28

问题


I digitized the roads of an area from Google Earth, Saved them to .Kml format, Then I opened this kml data file in QGIS 2.1 and converted it into ESRI shape file in WGS84 CRS. The file is successfully converted to shape file. But when I imported this file in NetLogo, a run-time error occurred which is

"Extension exception: unsupported shape type 13 error while observer running GIS:LOAD-DATASET"

My code is

gis:load-coordinate-system (word "Roads.prj")

to setup
    let paths-dataset gis:load-dataset "Roads.shp" // error line
    gis:set-world-envelope  gis:envelope-of paths-dataset
    foreach gis:feature-list-of paths-dataset
    [
       gis:set-drawing-color blue
       gis:draw ? 1.0
    ]
 end

Roads.shp is very small size 3kb only because I am learning how to import vector file in NetLogo I digitized four roads only.

I want to know why this error is there. In one link I found that the "type 13 error" occurs when data is in 3D and the tool in which the .shp is being imported supports 2D.

Is this the reason? How do I will know the file which I converted using QGIS is in 2D or 3D. If it is in 3D how to convert it into 2D shape file (.shp)

来源:https://stackoverflow.com/questions/37966966/importing-vector-shp-file-in-netlogo

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!