Hi,
I am very new to geopyspark.
I tried it but raster_layer.tile_to_layout didn't work.
Here is the code I have tried:
---
from pyspark import SparkContext
conf = gps.geopyspark_conf(master="local[*]", appName="layers")
pysc = SparkContext(conf=conf)
raster_layer = gps.geotiff.get(layer_type=gps.LayerType.SPATIAL, uri="file:///tmp/cropped.tif")
python_rdd = raster_layer.to_numpy_rdd()
print (python_rdd.first())
tiled_raster_layer = raster_layer.tile_to_layout(gps.GlobalLayout(), target_crs=3857)
--
it gives some errors:
Traceback (most recent call last):
File "ingest1.py", line 16, in <module>
tiled_raster_layer = raster_layer.tile_to_layout(gps.GlobalLayout(), target_crs=3857)
File "/usr/local/miniconda3/lib/python3.7/site-packages/geopyspark/geotrellis/layer.py", line 832, in tile_to_layout
return _reproject(target_crs, layout, resample_method, partition_strategy, self)
File "/usr/local/miniconda3/lib/python3.7/site-packages/geopyspark/geotrellis/layer.py", line 134, in _reproject