Skip to content

apply-raster and raster-sample generate different results #13

@MadTom1957

Description

@MadTom1957

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions