Open marygriffus opened 4 years ago
Hi @marygriffus, thanks for reporting! I marked it as a bug for now, probably requires some investigation. Could you provide some input raster to reproduce that behavior?
Will do!
Ok, here's a simplified version of file read/initial reprojection:
val floatingLayout = FloatingLayoutScheme(512)
val options: HadoopGeoTiffRDD.Options = HadoopGeoTiffRDD.Options(maxTileSize = Some(512))
val baseRDD: RDD[(ProjectedExtent, Tile)] = HadoopGeoTiffRDD.spatial(tileDirectory, options)
val meta: TileLayerMetadata[SpatialKey] = CollectTileLayerMetadata.fromRDD(baseRDD, floatingLayout)._2
val gridded: RDD[(SpatialKey, Tile)] = baseRDD.tileToLayout(meta, NearestNeighbor)
val inputRDD: TileLayerRDD[SpatialKey] = new ContextRDD(gridded, meta)
And here is a tile to replicate the issue. Mannassas_10m.tif.zip
The pyramids generated by the following result in 'stretched' pixels, with a pixel size of (1.396611782340103,-35.311459771682358).
Looks pretty normal zoomed out:
But zoom in and the distortion is more clear: