mapchete.commons.contours module¶
Contour line extraction using matplotlib.
- mapchete.commons.contours.extract_contours(array, tile, interval=100, field='elev', base=0)¶
Extract contour lines from an array.
- Parameters
- arrayarray
Input elevation data.
- tileTile
Tile covering the array.
- intervalinteger
Elevation value interval when drawing contour lines.
- fieldstring
Output field name containing elevation value.
- baseinteger
Elevation base value the intervals are computed from.
- Returns
- contoursiterable
contours as GeoJSON-like pairs of properties and geometry