Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle geographic data without requiring reprojection #76

Open
scw opened this issue Apr 17, 2014 · 0 comments
Open

Handle geographic data without requiring reprojection #76

scw opened this issue Apr 17, 2014 · 0 comments

Comments

@scw
Copy link
Member

scw commented Apr 17, 2014

A suggestion from Jeff Jenness:

Make it work correctly with geographic (lat/long) data. I'm actually going to add TPI to my DEM Surface Tools extension (http://www.jennessent.com/arcgis/surface_area.htm), and I will make it work correctly with both projected and geographic data. It is actually not that hard; you just need to build an array (or some other data structure in memory) that holds the north/south, east/west and diagonal cell-to-cell distances for each row in the DEM. Then, when you are calculating the east-west and north-south gradients (i.e. to get slope), you just adjust your calculations using those true cell-to-cell distances. I think I have all this illustrated in the manual for the DEM Surface Tools (at least conceptually; I don't get into coding details in the manual).

@scw scw added the enhancement label Aug 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant