Skip to content

Commit

Permalink
more adjustments from PR feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohns-databricks committed Jan 23, 2024
1 parent 00b1f39 commit 4b45b44
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions docs/source/api/rasterio-udfs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,14 @@ Finally we will apply the function to the DataFrame.
lit("dbfs:/path/to/output/dir").alias("fuse_dir")
)
).display()
+---------------------------------------------+
| write_raster(raster, driver, uuid, fuse_dir)|
+---------------------------------------------+
| dbfs:/path/to/output/dir/1234.tif |
| dbfs:/path/to/output/dir/4545.tif |
| dbfs:/path/to/output/dir/3215.tif |
| ... |
+---------------------------------------------+
+----------------------------------------------+
| write_raster(raster, driver, uuid, fuse_dir) |
+----------------------------------------------+
| dbfs:/path/to/output/dir/1234.tif |
| dbfs:/path/to/output/dir/4545.tif |
| dbfs:/path/to/output/dir/3215.tif |
| ... |
+----------------------------------------------+
Sometimes you don't need to be quite as fancy. Consider when you simply want to specify to write out raster contents,
assuming you specify the extension in the file_id. This is just writing binary column to file, nothing further.
Expand Down Expand Up @@ -343,11 +343,11 @@ Finally we will apply the function to the DataFrame.
lit("dbfs:/path/to/output/dir").alias("fuse_dir")
)
).display()
+-------------------------------------+
| write_tif(raster, file_name, fuse_dir) |
+-------------------------------------+
| dbfs:/path/to/output/dir/1234.tif |
| dbfs:/path/to/output/dir/4545.tif |
| dbfs:/path/to/output/dir/3215.tif |
| ... |
+-------------------------------------+
+----------------------------------------+
| write_tif(raster, file_name, fuse_dir) |
+----------------------------------------+
| dbfs:/path/to/output/dir/1234.tif |
| dbfs:/path/to/output/dir/4545.tif |
| dbfs:/path/to/output/dir/3215.tif |
| ... |
+----------------------------------------+

0 comments on commit 4b45b44

Please sign in to comment.