Skip to content

Commit cdef623

Browse files
committed
Remove file:// scheme from docs geotiff write
Signed-off-by: Jason T. Brown <[email protected]>
1 parent 6a57e06 commit cdef623

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pyrasterframes/src/main/python/docs/raster-write.pymd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Fortunately, we can use the cluster computing capability to downsample the data
6666

6767
```python write_geotiff
6868
outfile = os.path.join('/tmp', 'geotiff-overview.tif')
69-
spark_df.write.geotiff('file://' + outfile, crs='EPSG:4326', raster_dimensions=(256, 256))
69+
spark_df.write.geotiff(outfile, crs='EPSG:4326', raster_dimensions=(256, 256))
7070
```
7171

7272
View it with `rasterio` to check the results:
@@ -83,6 +83,10 @@ with rasterio.open(outfile) as src:
8383

8484
If there are many tile or projected raster columns in the DataFrame, the GeoTIFF writer will write each one as a separate band in the file. Each band in the output will be tagged the input column names for reference.
8585

86+
```python, echo=False
87+
os.remove(outfile)
88+
```
89+
8690
## GeoTrellis Layers
8791

8892
[GeoTrellis][GeoTrellis] is one of the key libraries that RasterFrames builds upon. It provides a Scala language API to working with large raster data with Apache Spark. Ingesting raster data into a Layer is one of the key concepts for creating a dataset for processing on Spark. RasterFrames write data from an appropriate DataFrame into a [GeoTrellis Layer](https://geotrellis.readthedocs.io/en/latest/guide/tile-backends.html). RasterFrames provides a `geotrellis` DataSource that supports both reading and writing of GeoTrellis layers.

0 commit comments

Comments
 (0)