Netlogo GIS unsupported shape type file - gis

During the SETUP loading phase of shp files of an urban model, Netlogo states:
Extension exception: unsupported shape type 15
error while observer running GIS:LOAD-DATASET
called by procedure SETUP
called by Button 'Go'
This happens when it tries to load this shp file: ZC.shp
Is there any way to fix this problem?

I have saved the shp file again but without z-axis information, and it worked

Related

NetLogo GIS: Error Message Loading Shapefile

I am receiving the following error message below when using the NetLogo GIS extension:
Extension exception: shapefile Data1/Hough.shp not found
error while observer running GIS:LOAD-DATASET
called by procedure SETUP
called by Button 'setup'
My shape file is loaded in the same folder as my script. Can someone help me trouble shoot this issue?
-Ivory
I made sure my shape file is in the same folder as my script.
This seems like the error you get when you have misspelled something or the file address is not well written.
If your Shapefile is in the same folder as your model, then maybe you need to use just set my-map gis:load-dataset "Hough.shp
In case you have your Shapefile in its own folder, contained in Data1, then it could be set my-map gis:load-dataset "Data1/Hough/Hough.shp
Hope this can help you. Next time, make sure you add in your question the part of the code giving you problems, it is way easier to help you knowing what you have coded to get that error!

Netlogo and GIS extension unsupported projection file

I am trying to import my ARCGIS Pro project to Netlogo and I am getting this error.
Extension exception: unsupported projection 'Mercator_Auxiliary_Sphere'
error while observer running GIS:LOAD-DATASET
called by procedure SETUP-MAP
called by Button 'setup-map'
How can I fix this issue?
First, go to the NetLogo User Manual section on the GIS extension. In the documentation for the primitive gis:load-coordinate-system, you will find a list of the projections that the extension can use. You will see that it can use several Mercator projections but not yours. So ideally you can fix this by going back to the GIS and saving your shapefile in one of the projections that NetLogo uses.
(I know almost nothing about GIS but: the GIS technician I work with often saves shapefiles for me in the Lambert_Conformal_Conic projection, while the GIS extension accepts only the Lambert_Conformal_Conic_2SP projection. We have learned to trick NetLogo by editing the shapefile’s .prj file to change the text "Lambert_Conformal_Conic" to "Lambert_Conformal_Conic_2SP". That makes the GIS extension think that we're using one of its projections, and it works. You could try this trick to tell NetLogo you're using one of the Mercator projections.)

How to convert longitude and latitude data into shapefiles for NetLogo

I have some longitude and latitude data and would like to load them into NetLogo for modeling. I used QGIS to load and visualize the data successfully. Then I exported the data as shapefiles (.shp) format, and there are several other files being exported togeter with postfix .shx, .dbf, .qpj, .prj, and .cpg.
But when I tried to load the data in NetLogo as
extensions [ gis ]
globals [ elevation ]
to load
clear-all
set elevation gis:load-dataset "MyDir/XXX.shp"
gis:set-world-envelope gis:envelope-of elevation
end
it reported an error saying "Extension exception: only GEOGCS and PROJCS are supported"
I searched the error online and think maybe it is because the file I exported from QGIS is not supported by NetLogo. But I know nothing about GIS data, so have no idea how to fix this problem.
I compared my .prj file with the example file of NetLogo GIS extension, googled the difference, and found out the solution, which is as followed.
In the QGIS, click Project and select Properties. There is a CRS tag on the left. Open it and one can find a "Coordinate reference systems of the world" window, inside which click the first class named Geographic Coordinate Systems, and choose the one named GCS_WGS_1984_XX.
Click OK and go back to the main panel. Right click your layer and set the layer's CRS. Choose the GCS_WGS_1984_XX one. Now export the layer and it can be loaded by NetLogo successfully.

NetLogo GIS extension: Unsupported file type 21 error

I have been trying a add a .shp file (point) in NetLogo, but it showing this error:
Extension exception: unsupported shape type 21
error while observer running GIS:LOAD-DATASET
called by procedure SETUP
called by Button 'Go'
Type 21 is PointM - a point with measure (as part of geometry field, rather than as a separate field). Apparently NetLogo does not support this.
You can typically just remove M value from this file and convert geometry to regular Point, using GDAL ogr2ogr tool or many GIS systems, then try to load converted file to NetLogo.

Error when loading shape files into Bluemix dashDB

I am running into the following error when I am loading my shape files through the DashDB console:
My shape files are the following:
Would anyone have experience working with DashDB and ran into a similar problem?
UPDATE:
I downloaded a separate dataset with the following files, and I still running into the same error:
Please find the following sample files https://www.dropbox.com/s/bkrac971g9uc02x/deng.zip?dl=0
I brought the Shapefile into QGIS easily, so I knew the format was OK. I unzipped the Shapefile, changed the file names to lower-case and re-zipped it up. Then I was able to get further in the dashDB upload UI. I got to a message saying the SRS was unknown. I then used QGIS to convert the SRS (spatial reference system) into a known one -- EPSG:4269, NAD83, and I was then able to upload it into dashDB. Here's the version of your file that works:
https://dl.dropboxusercontent.com/u/8196680/dc.zip