This project is read-only.

Check if pointshape intersects/touches raster cell

Aug 7, 2014 at 11:07 AM
Hello again ^^

Please excuse me, if I'm annoying you with my frequent asking,
but I hope that you can help me with this:

The point is, that I have a featureset with pointshapes in it and depending on the extent of this featureset, I created a rasterfile with 719 columns and 541 rows so that I get a cellsize of approx.
25x25m, what is very important for my project...

Now I need a routine, that checks for every cell of my raster file, if any of my points intersects/touches it.

How to realize this routine, because I haven't found a possibility to compare point(shapes) with raster file cells yet

Silesian Power
Aug 8, 2014 at 3:09 PM
You would use the projtocell raster method

what I would do is to cycle through all of your points, get their coordinates and use the following instruction:
where yourRaster is the Raster you created, and coord is the coordinates of the point shape you are analyzing.
With the instruction above you get the RCindex (which contains row and column indexes) of the cell of your raster that contains your point.