Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve logic for checking whether the input data is in a projected c…
…oordinate system.
- Loading branch information
e4d81b9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI @d-wasserman: Your original code for Create Percent Access Polygons checked whether a feature class was projected by looking at the SpatialReference.PCSCode property, and if it was 0, assuming it was not projected. I just discovered some state plane coordinate system that also had a PCSCode of 0. I have now switched the logic (which now lives in tool validation in the .tbx) to use SpatialReference.type != "Projected", which seems to work reliably.