Skip to content

Commit

Permalink
Improve logic for checking whether the input data is in a projected c…
Browse files Browse the repository at this point in the history
…oordinate system.
  • Loading branch information
mmorang committed Sep 27, 2018
1 parent 889d0ab commit e4d81b9
Showing 1 changed file with 0 additions and 0 deletions.
Binary file modified add-GTFS-to-a-network-dataset/Transit Analysis Tools.tbx
Binary file not shown.

1 comment on commit e4d81b9

@mmorang
Copy link
Collaborator Author

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.

Please sign in to comment.