Sunday, October 11, 2020

Reading map files into NetLogo

 I am trying to read the map files provided by the coronavirus-data into NetLogo using the following code: 

extensions [gis]

globals [zip-data projection]

to setup

  clear-all

  ;gis:load-coordinate-system (word "data/" projection ".prj")

  set zip-data gis:load-dataset "MODZCTA_2010.shp"

  gis:set-drawing-color 5  gis:fill zip-data 1.0

end

I got the error message complaining about the unsupported Lambert_Conformal_Conic projection. A simple solution is provided here.

No comments:

Counter