Open MadTom1957 opened 7 years ago
This issue is still there (NetLogo v6.1.1), but Tom is correct: using gis:raster-sample instead takes care of the problem, at least for simple maps. I do not know about more complex ones. Thanks Tom for providing the workaround.
I think I found a bug in gis:apply-raster. I'm using NetLogo v5.2.1 For a long time I have been having trouble aligning my raster data and my shape files in NetLogo using the GIS extension. When I import the raster and assign values using gis:apply-raster, I usually end up with a border along the bottom and right side of the view filled with NaN. My rasters are displaced (upward and to the left) by this same margin when compared to my vectors. (the .shp and .asc files align perfectly in QGIS). However, when I cycle gis:raster-sample across each patch in view, the entire raster shifts down and to the right, filling the NaN margins and aligning perfectly with the shape files.
Tom