I have a county polygon and a grid containing 1M cells that I want to overlay inside of the polygon. I have tried using the clip feature to cut the grid in the shape of the polygon. I continually get an NOT RESPONDING message after it seems to freeze on step 3 of 16.
|
|
Oh my. It is not freezing, you have 1million polygons and it is testing one by one! Normally, I would write a simple custom script to make it more eficient or do it in PostGIS. A faster way ia to grab the outer polygon ring as a polyline and only clip the grids that intersect that one, the features inside will stay the same and the features outside will be ommitted. Or you can just wait until it finishes :) |
|||
|
|
|
I would suggest using the Polygon to Raster tool with a 1 meter cell size using your study area as input, then using the Raster to Point tool to arrive at points spaced one meter apart within your study area. It should avoid the relatively expensive clip operation, however if your study area is large or with complex geometry, it might take a while to create the initial raster. I just performed this on a basic polygon which created 19,020 points (19,020m2) and it took a total of about 30 seconds to perform both steps - for what that's worth. Edit to add: I tried this on a much larger polygon (6708490978.49684 m^2) and it took 12 minutes to create the raster (in a VM). However, the Raster to Points operation failed after ~9min because it exceeded the 2GB filesize limit of shapefiles. I'm about to try again using a geodatabase output. It doesn't seem like it will lead to an out of memory error either way, though. |
||||
|
|

