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

Extract contours from DEMs #54

Open
mojodna opened this issue Aug 17, 2017 · 0 comments
Open

Extract contours from DEMs #54

mojodna opened this issue Aug 17, 2017 · 0 comments
Assignees

Comments

@mojodna
Copy link
Owner

mojodna commented Aug 17, 2017

Preliminary approach: use skimage.measure.find_contours on numpy arrays loaded using rasterio. Convert and simplify contours using shapely.

Output Formats

GeoJSON / TopoJSON / MVT vector tiles.

Data Attributes

Data attributes will include an elevation value (an integer), kind value (e.g. contour), and min_zoom value for the zoom when that interval was first included on the map. A 500 meter interval contour would get a min_zoom of 9 in both the zoom 9 tile, and any subsequent zoom 10, 11, 12 & etc tile. A 200 meter interval contour would get a min_zoom of 10 in both the zoom 10 tile and any subsequent zoom 11, 12, 13 & etc tile. The min_zoom value can act as an “index” indicator, but we will not include an index property.

Intervals

Zoom Interval (Imperial) Interval (Metric)
9 tk 500m
10 tk 200m
11 1000ft 100m
12 tk 50m
13 200ft 20m
14+ 40ft 10m
@mojodna mojodna self-assigned this Aug 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant