geotrellis / geotrellis-pointcloud

GeoTrellis PointCloud library to work with any pointcloud data on Spark
Apache License 2.0
26 stars 10 forks source link

Fix DEMRasterSource reprojection and resampling behavior #46

Closed pomadchin closed 4 years ago

pomadchin commented 4 years ago
  1. This PR fixes the way DEMRasterSource performs reproject and resample.
  2. Fixes triangulation and moves it from the DEMRasterSource
  3. Use native triangulation and benchmark it

Benchmark with motivation to implement rasterization in a native code:

* jmh:run -i 10 -wi 5 -f1 -t1 .*DEMRasterSourceBench.*
*
* 03/09/2020 #3
* [info] Benchmark                         Mode  Cnt     Score       Error  Units
* [info] DEMRasterSourceReadAll            avgt   10   888.188 ±  139.047  ms/op
* [info] GeoTrellisDEMRasterSourceReadAll  avgt   10  2702.808 ±  188.939  ms/op
* [info] JavaDEMRasterSourceReadAll        avgt   10  1802.555 ± 1048.380  ms/op
pomadchin commented 4 years ago

Going to merge it, to push geortellis-pointcloud-server work further