Open lossyrob opened 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.
Any movement on adding contour line or polygon creation in geotrellis?
hey @mjj203 nope; we haven't touched this issue yet.
Hi, is this requirement developed?
@dingsl-giser hi there! no, it's been not really required for any work, so any contributions and help are really welcome!
We should be able to generate contour lines from DEM data.
and, distributed,
(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