Description Usage Arguments See Also Examples
View source: R/data_interface.R
Export serialized data from a Sedona SpatialRDD into a WKB file.
1 | sedona_write_wkb(x, output_location)
|
x |
The SpatialRDD object. |
output_location |
Location of the output file. |
Other Sedona data inferface functions:
sedona_read_dsv_to_typed_rdd()
,
sedona_read_geojson_to_typed_rdd()
,
sedona_read_geojson()
,
sedona_read_shapefile()
,
sedona_read_wkb()
,
sedona_read_wkt()
,
sedona_save_spatial_rdd()
,
sedona_write_geojson()
,
sedona_write_wkt()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | library(sparklyr)
library(sparklyr.sedona)
sc <- spark_connect(master = "spark://HOST:PORT")
if (!inherits(sc, "test_connection")) {
input_location <- system.file(
file.path("extdata", "county_tiny_wkb.tsv"), package = "sparklyr.sedona"
)
rdd <- sedona_read_wkb(
sc,
location = input_location,
wkb_col_idx = 0L
)
sedona_write_wkb(rdd, "/tmp/wkb_output.tsv")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.