I have a need to create regular points with a coordinate every meter in a county. I've tried several methods including Hawthes Tools in ArcMap9.3, ET GeoWizards, and the standard Toolbox. I have encountered reoccurring instances where all of the processes have froze up.I am assuming that these programs can't handle that data generation. I tried this in QGIS as well. I need help ASAP.
- Convert your county polygons to raster using the ArcGIS Conversion Toolbox > To Raster > Polygon to Raster. Set the cell size to 1m.
- Use spatial analyst's Sample Tool (Spatial Analyst toolbox > Extraction tools > sample) to create points for every cell.
- Extract only the points that intersect your county polygon.
If you continue to run into problems, try splitting the county polygon into smaller areas and using this same process.
Personally, I would get the grid of the MBR of the country: create a 2D array based on the min max coords of the MBR, working how many items would fill in that grid with 1 meter intervals and then loop[ through, creating points on the fly, rounding it off with a delete outside of the county.
So you'll know the Min / Max X, so you'll know how many metres will fill in that grid, so you have your grid of X values. Do the same for the Y and you have that grid.
The following is pseudo code
for y in range(0, rows): for x in range(0, cols): currentPoint = (y, x) CreatePoint
I reckon that's about 20 lines of python with the erase outside?