spark_read_geojson: Reading GeoJSON files

Description Usage Arguments Value References See Also

Description

Imports data from GeoJSON files into Spark DataFrames.

Usage

1
2
spark_read_geojson(sc, name, path, magellanIndex = TRUE,
  magellanIndexPrecision = 30L, ...)

Arguments

sc

spark_connection provided by sparklyr.

name

The name to assign to the newly generated table (see also spark_read_source).

path

The path to the GeoJSON file. This may be a local path or an HDFS path.

magellanIndex

logical specifying whether geometries should be indexed when loading the data (see https://github.com/harsha2010/magellan#creating-indexes-while-loading-data). Indexing creates an additional column called "index" which holds the list of ZOrder curves of the given precision (see argument magellanIndexPrecision). Defaults to TRUE.

magellanIndexPrecision

integer specifying the precision to use for creating the ZOrder curves.

...

Additional arguments passed to spark_read_source.

Value

A tbl_spark which provides a dplyr-compatible reference to a Spark DataFrame.

References

https://github.com/harsha2010/magellan http://geojson.org/

See Also

spark_read_source


miraisolutions/sparkgeo documentation built on May 7, 2019, 8:01 a.m.