Currently using Pro 3.1. User wants to use the old MakeSamplePointGrid from ArcMap in Pro. I was wondering if there is a comparable tool already in Pro that I'm not finding or how I can get this tool into Pro. Any help would be greatly appreciated.
I can't find any documentation for an official tool called "MakeSamplePointGrid". Was this a custom tool? What does the tool do?
I think it is a custom tool. Documentation that I have says: MakeSamplePointGrid.py is a Python script tool that creates a systematic grid of points within user-specified polygon features. Users
control point density by specifying a representative area for each point, or by specifying X and Y point intervals. Can choose to offset alternating rows.
Hi Johannes. I was told to reach out to you since you helped Dustin update the tool to run in Pro. It worked for me. And then I didnt need to use it for a little while. But when I went into try to create a gri, it gave me an error which I will post below. I specifically use this tool because it is the only one that offsets the rows which is needed for creating our goshawk grid call stations. Do you know if Pro updated and the older version no longer works because of that? Do you know how to fix it? Thanks. See error below:
Make Sample Point Grid
=====================
Parameters
Feature class consisting of sample area polygon(s) T:\FS\NFS\ApacheSitgreaves\Program\2600Wildlife\GIS\SO\Workspace\ndouglas\Projects\BM\Nagel\Dutch\Dutch Rx NOGO Inventory\DutchRx_NOGO_InventoryArea.shp
Method of point density calculation Interval
Representative area in acres 10
X-direction interval in map units 300
Y-direction interval in map units 260
Offset alternating rows true
Output Feature Class T:\FS\NFS\ApacheSitgreaves\Program\2600Wildlife\GIS\SO\Workspace\ndouglas\Projects\BM\Nagel\Dutch\Dutch Rx NOGO Inventory\DutchRxNOGOInventory_Grid1.shp
=====================
Environments
Output Coordinate System PROJCS["NAD_1983_UTM_Zone_12N",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-111.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]
=====================
Messages
Start Time: Wednesday, April 17, 2024 11:50:42 AM
Discovering map units...
Map units = Meter
Creating an empty point feature class...
Traceback (most recent call last):
File "T:\FS\NFS\ApacheSitgreaves\Program\2600Wildlife\GIS\SO\Workspace\ndouglas\MXD\MakeSamplePointGrid_updated2023\MakeSamplePointGrid.atbx\MakeSamplePointGrid.tool\tool.script.execute.py", line 135, in <module>
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 5174, in AddField
raise e
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 5171, in AddField
retval = convertArcObjectToPythonObject(gp.AddField_management(*gp_fixargs((in_table, field_name, field_type, field_precision, field_scale, field_length, field_alias, field_is_nullable, field_is_required, field_domain), True)))
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 520, in <lambda>
return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000313: The length of Field Name must not be larger than 10
Failed to execute (AddField).
Failed script Make Sample Point Grid...
Failed to execute (MakeSamplePointGrid).
Failed at Wednesday, April 17, 2024 11:51:32 AM (Elapsed Time: 49.88 seconds)