FluvialGeomorph / FluvialGeomorph-toolbox

The FluvialGeomorph ArcGIS toolbox.
Creative Commons Zero v1.0 Universal
11 stars 0 forks source link

Check all geodatabase coordinate systems match #7

Open mpdougherty opened 3 years ago

mpdougherty commented 3 years ago

If all vector feature classes (fc) in a reach geodatabase don't have matching coordinate systems, it is likely that attributes will get calculated in the units of one coordinate system and then transferred by a tool into the attribute table of another fc that could have a different coordinate system. This leads to attributes potentially having different units than the fc's coordinate system's units.

To prevent this, a new tool should be created that checks a reach geodatabase to determine if all vector fcs' coordinate systems are the same. It should produce a report to help the analyst determine those that are not the same.

arcpy provides the SpatialReference object for this: https://pro.arcgis.com/en/pro-app/arcpy/classes/spatialreference.htm

The report should probably list the following SpatialReference object properties: