locationtech / geotrellis

GeoTrellis is a geographic data processing engine for high performance applications.
http://geotrellis.io
Other
1.33k stars 360 forks source link

Implement contour line generation #1951

Open lossyrob opened 7 years ago

lossyrob commented 7 years ago

We should be able to generate contour lines from DEM data.

val elevationTile: Tile = ???

val contours: Seq[LineFeature[Double]] = elevationTile.contours(options)

and, distributed,

val elevationLayer: RDD[SpatialKey, Tile] with Metadata[TileLayerMetadata[SpatialKey]] = ???

val countours: RDD[LineFeature[Double]] = elevationLayer.countours(options)

(as well as the Collections API version)

options would generally follow the same options as are available to gdal_contour

These are good places to start: http://www.gdal.org/gdal_contour.html https://github.com/OSGeo/gdal/blob/trunk/gdal/alg/contour.cpp

jpolchlo commented 7 years ago

Should be a simple marching cubes implementation. Not 100% sure what the stitching algorithm would look like, though.

-----Original Message----- From: "Rob Emanuele" notifications@github.com Sent: ‎12/‎29/‎2016 6:47 PM To: "locationtech/geotrellis" geotrellis@noreply.github.com Cc: "Subscribed" subscribed@noreply.github.com Subject: [locationtech/geotrellis] Implement contour line generation (#1951)

We should be able to generate contour lines from DEM data. val elevationTile: Tile = ???

val contours: Seq[LineFeature[Double]] = elevationTile.contours(options)and, distributed, val elevationLayer: RDD[SpatialKey, Tile] with Metadata[TileLayerMetadata[SpatialKey]] = ???

val countours: RDD[LineFeature[Double]] = elevationLayer.countours(options)(as well as the Collections API version) options would generally follow the same options as are available to gdal_contour These are good places to start: http://www.gdal.org/gdal_contour.html https://github.com/OSGeo/gdal/blob/trunk/gdal/alg/contour.cpp — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

mjj203 commented 4 years ago

Any movement on adding contour line or polygon creation in geotrellis?

pomadchin commented 4 years ago

hey @mjj203 nope; we haven't touched this issue yet.

dingsl-giser commented 2 weeks ago

Hi, is this requirement developed?

pomadchin commented 2 weeks ago

@dingsl-giser hi there! no, it's been not really required for any work, so any contributions and help are really welcome!