geojsonio: Convert Data from and to 'GeoJSON' or 'TopoJSON'
Version 0.3.2

Convert data to 'GeoJSON' or 'TopoJSON' from various R classes, including vectors, lists, data frames, shape files, and spatial classes. geojsonio does not aim to replace packages like 'sp', 'rgdal', 'rgeos', but rather aims to be a high level client to simplify conversions of data from and to 'GeoJSON' and 'TopoJSON'.

Browse man pages Browse package API and functions Browse package files

AuthorScott Chamberlain [aut, cre], Andy Teucher [aut]
Date of publication2017-02-06 10:27:41
MaintainerScott Chamberlain <myrmecocystus@gmail.com>
LicenseMIT + file LICENSE
Version0.3.2
URL https://github.com/ropensci/geojsonio
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("geojsonio")

Man pages

as.json: Convert inputs to JSON
as.location: Convert a path or URL to a location object.
bounds: Get bounds for a list or geo_list
canada_cities: This is the same data set from the maps library, named...
centroid: Get centroid for a geo_list
file_to_geojson: Convert spatial data files to GeoJSON from various formats.
geojson-add: Add together geo_list or json objects
geojsonio: *I/O for GeoJSON*
geojsonio-deprecated: Deprecated functions in geojsonio
geojson_json: Convert many input types with spatial data to geojson...
geojson_list: Convert many input types with spatial data to geojson...
geojson_read: Read geojson or other formats from a local file or a URL
geojson_sp: Convert output of geojson_list or geojson_json to spatial...
geojson_style: Style a data.frame or list prior to converting to geojson
geojson_write: Convert many input types with spatial data to a geojson file
lint: Lint geojson
map_gist: Publish an interactive map as a GitHub gist
map_leaf: Make an interactive map locally
pipe: Pipe operator
pretty: Convert json input to pretty printed output
projections: topojson projections and extensions
states: This is the same data set from the ggplot2 library
topojson_read: Read topojson from a local file or a URL
us_cities: This is the same data set from the maps library, named...
validate: Validate a geoJSON file, json object, list, or Spatial class.

Functions

+.geo_list Man page
+.json Man page
\%>\% Man page
add_geolist Source code
add_json Source code
allocate_column Source code
as.SpatialLinesDataFrame.SpatialLines Source code
as.SpatialPointsDataFrame.SpatialPixels Source code
as.SpatialPointsDataFrame.SpatialPoints Source code
as.SpatialPolygonsDataFrame Source code
as.SpatialPolygonsDataFrame.SpatialRings Source code
as.SpatialPolygonsDataFrame.SpatialRingsDataFrame Source code
as.SpatialPolygonsDataFrame.character Source code
as.SpatialPolygonsDataFrame.geojson Source code
as.geo_list Source code
as.geojson Source code
as.json Man page Source code
as.json.character Source code
as.json.geo_list Source code
as.json.geojson Source code
as.json.list Source code
as.location Man page Source code
as.location.character Source code
as.location.location Source code
as_location Source code
bbox2df Source code
bounds Man page Source code
bounds.geo_list Source code
bounds.list Source code
canada_cities Man page
capwords Source code
centroid Man page Source code
centroid.geo_list Source code
check4gistr Source code
check_4_leaflet Source code
check_location Source code
class_json Source code
convert_ordered Source code
convert_wgs84 Source code
convert_wgs84.Spatial Source code
convert_wgs84.sf Source code
convert_wgs84.sfc Source code
convert_wgs84_sf_sfc Source code
datdat Source code
df_bounds Source code
df_to_SpatialPointsDataFrame Source code
df_to_SpatialPolygonsDataFrame Source code
df_to_SpatialPolygonsDataFrame2 Source code
df_to_geo_list Source code
df_vec Source code
donotnull Source code
drop_m Source code
drop_m.list Source code
drop_m.matrix Source code
drop_m.numeric Source code
file_at Source code
file_ret Source code
file_to_geojson Man page Source code
file_to_sp Source code
from_json Source code
ftype Source code
geojson-add Man page
geojson_bounds Source code
geojson_file_to_char Source code
geojson_file_to_list Source code
geojson_json Man page Source code
geojson_json.SpatialCollections Source code
geojson_json.SpatialGrid Source code
geojson_json.SpatialGridDataFrame Source code
geojson_json.SpatialLines Source code
geojson_json.SpatialLinesDataFrame Source code
geojson_json.SpatialPixels Source code
geojson_json.SpatialPixelsDataFrame Source code
geojson_json.SpatialPoints Source code
geojson_json.SpatialPointsDataFrame Source code
geojson_json.SpatialPolygons Source code
geojson_json.SpatialPolygonsDataFrame Source code
geojson_json.SpatialRings Source code
geojson_json.SpatialRingsDataFrame Source code
geojson_json.data.frame Source code
geojson_json.geo_list Source code
geojson_json.list Source code
geojson_json.numeric Source code
geojson_json.sf Source code
geojson_json.sfc Source code
geojson_json.sfg Source code
geojson_list Man page Source code
geojson_list.SpatialCollections Source code
geojson_list.SpatialGrid Source code
geojson_list.SpatialGridDataFrame Source code
geojson_list.SpatialLines Source code
geojson_list.SpatialLinesDataFrame Source code
geojson_list.SpatialPixels Source code
geojson_list.SpatialPixelsDataFrame Source code
geojson_list.SpatialPoints Source code
geojson_list.SpatialPointsDataFrame Source code
geojson_list.SpatialPolygons Source code
geojson_list.SpatialPolygonsDataFrame Source code
geojson_list.SpatialRings Source code
geojson_list.SpatialRingsDataFrame Source code
geojson_list.data.frame Source code
geojson_list.geo_list Source code
geojson_list.json Source code
geojson_list.list Source code
geojson_list.numeric Source code
geojson_list.sf Source code
geojson_list.sfc Source code
geojson_list.sfg Source code
geojson_read Man page Source code
geojson_read.character Source code
geojson_read.location Source code
geojson_rw Source code
geojson_sp Man page Source code
geojson_sp.geo_json Source code
geojson_sp.geo_list Source code
geojson_sp.json Source code
geojson_style Man page Source code
geojson_style.data.frame Source code
geojson_style.list Source code
geojson_write Man page Source code
geojson_write.SpatialCollections Source code
geojson_write.SpatialGrid Source code
geojson_write.SpatialGridDataFrame Source code
geojson_write.SpatialLines Source code
geojson_write.SpatialLinesDataFrame Source code
geojson_write.SpatialPixels Source code
geojson_write.SpatialPixelsDataFrame Source code
geojson_write.SpatialPoints Source code
geojson_write.SpatialPointsDataFrame Source code
geojson_write.SpatialPolygons Source code
geojson_write.SpatialPolygonsDataFrame Source code
geojson_write.SpatialRings Source code
geojson_write.SpatialRingsDataFrame Source code
geojson_write.data.frame Source code
geojson_write.geo_list Source code
geojson_write.json Source code
geojson_write.list Source code
geojson_write.numeric Source code
geojson_write.sf Source code
geojson_write.sfc Source code
geojson_write.sfg Source code
geojsonio Man page
geojsonio-deprecated Man page
geojsonio-package Man page
get_geometry_type Source code
get_geometry_type.sfc Source code
get_geometry_type.sfg Source code
get_props Source code
get_sf_column_name Source code
get_vals Source code
get_vals2 Source code
gistc Source code
guess_latlon Source code
handle_remote Source code
is.named Source code
is.url Source code
is_wgs84 Source code
is_wgs84.Spatial Source code
is_wgs84.sf Source code
is_wgs84.sfc Source code
is_wgs84_proj4 Source code
iter_spatialcoll Source code
lines_to_geo_list Source code
lint Man page Source code
lint.SpatialGrid Source code
lint.SpatialGridDataFrame Source code
lint.SpatialLines Source code
lint.SpatialLinesDataFrame Source code
lint.SpatialPoints Source code
lint.SpatialPointsDataFrame Source code
lint.SpatialPolygons Source code
lint.SpatialPolygonsDataFrame Source code
lint.character Source code
lint.data.frame Source code
lint.geo_list Source code
lint.json Source code
lint.list Source code
lint.location Source code
lint.numeric Source code
lint_polygon_list Source code
lintit Source code
list_to_SpatialPointsDataFrame Source code
list_to_SpatialPolygonsDataFrame Source code
list_to_geo_list Source code
list_to_geojson Source code
list_vec Source code
make_assignment_call Source code
make_coords Source code
make_names Source code
makecoords Source code
map_gist Man page Source code
map_gist.SpatialGrid Source code
map_gist.SpatialGridDataFrame Source code
map_gist.SpatialLines Source code
map_gist.SpatialLinesDataFrame Source code
map_gist.SpatialPixels Source code
map_gist.SpatialPixelsDataFrame Source code
map_gist.SpatialPoints Source code
map_gist.SpatialPointsDataFrame Source code
map_gist.SpatialPolygons Source code
map_gist.SpatialPolygonsDataFrame Source code
map_gist.SpatialRings Source code
map_gist.SpatialRingsDataFrame Source code
map_gist.data.frame Source code
map_gist.geo_list Source code
map_gist.json Source code
map_gist.list Source code
map_gist.location Source code
map_gist.numeric Source code
map_leaf Man page Source code
map_leaf.SpatialGrid Source code
map_leaf.SpatialGridDataFrame Source code
map_leaf.SpatialLines Source code
map_leaf.SpatialLinesDataFrame Source code
map_leaf.SpatialPixels Source code
map_leaf.SpatialPixelsDataFrame Source code
map_leaf.SpatialPoints Source code
map_leaf.SpatialPointsDataFrame Source code
map_leaf.SpatialPolygons Source code
map_leaf.SpatialPolygonsDataFrame Source code
map_leaf.SpatialRings Source code
map_leaf.SpatialRingsDataFrame Source code
map_leaf.character Source code
map_leaf.data.frame Source code
map_leaf.geo_list Source code
map_leaf.json Source code
map_leaf.list Source code
map_leaf.location Source code
num2df Source code
num_to_geo_list Source code
onLoad Source code
output_template Source code
petiole Source code
pluck Source code
pretty Man page Source code
pretty.geo_list Source code
pretty.json Source code
print.geojson Source code
print.location Source code
print.spatialcoll Source code
projections Man page Source code
quickdf Source code
rachis Source code
rachis.SpatialGrid Source code
rachis.SpatialGridDataFrame Source code
rachis.SpatialLines Source code
rachis.SpatialLinesDataFrame Source code
rachis.SpatialPixels Source code
rachis.SpatialPixelsDataFrame Source code
rachis.SpatialPoints Source code
rachis.SpatialPointsDataFrame Source code
rachis.SpatialPolygons Source code
rachis.SpatialPolygonsDataFrame Source code
rachis.SpatialRings Source code
rachis.SpatialRingsDataFrame Source code
rachis.character Source code
rachis.data.frame Source code
rachis.geo_list Source code
rachis.json Source code
rbind_fill Source code
read_json Source code
read_topojson Source code
sp_bounds Source code
spdftogeolist Source code
splinestogeolist Source code
sppolytogeolist Source code
states Man page
switch_geom_type Source code
tg_compact Source code
to_json Source code
topojson_read Man page Source code
topojson_read.character Source code
topojson_read.location Source code
tosp Source code
us_cities Man page
v_url Source code
val_fxn Source code
validate Man page Source code
validate.SpatialGrid Source code
validate.SpatialGridDataFrame Source code
validate.SpatialLines Source code
validate.SpatialLinesDataFrame Source code
validate.SpatialPoints Source code
validate.SpatialPointsDataFrame Source code
validate.SpatialPolygons Source code
validate.SpatialPolygonsDataFrame Source code
validate.character Source code
validate.data.frame Source code
validate.geo_list Source code
validate.json Source code
validate.list Source code
validate.location Source code
validate.numeric Source code
write_geojson Source code
write_ogr Source code
write_ogr2 Source code

Files

inst
inst/examples
inst/examples/us_states.topojson
inst/examples/zillow_or.geojson
inst/examples/norway_maple.kml
inst/examples/feature_collection.geojson
inst/examples/bison.zip
inst/examples/poa_annua.kml
inst/examples/california.geojson
inst/img
inst/img/unnamed-chunk-17-1.png
inst/img/unnamed-chunk-16-1.png
inst/img/unnamed-chunk-14-1.png
inst/img/unnamed-chunk-12-1.png
inst/img/unnamed-chunk-11-1.png
inst/img/unnamed-chunk-15-1.png
inst/img/unnamed-chunk-18-1.png
inst/img/readme1.png
inst/img/unnamed-chunk-20-1.png
inst/ignore
inst/ignore/test-geojson_style.R
inst/ignore/geobuf.R
inst/ignore/postgis.R
inst/ignore/topojson_write.r
inst/ignore/map.R
inst/ignore/turf_play.R
inst/ignore/topojson_v8.R
inst/ignore/postgis_code.R
inst/ignore/postgis-play.R
inst/doc
inst/doc/geojson_spec.html
inst/doc/geojson_spec.Rmd
inst/doc/maps.Rmd
inst/doc/geojsonio_vignette.html
inst/doc/maps.html
inst/doc/geojsonio_vignette.Rmd
inst/js
inst/js/turf_extent.js
inst/js/geojsonhint.js
inst/vign
inst/vign/maps.md
inst/vign/geojson_spec.Rmd
inst/vign/maps.Rmd
inst/vign/figure
inst/vign/figure/maps_sppixels.png
inst/vign/figure/unnamed-chunk-17-1.png
inst/vign/figure/map_leaf1.png
inst/vign/figure/leafletmap2.png
inst/vign/figure/maps_sppts.png
inst/vign/figure/maps_dataframe.png
inst/vign/figure/map_leaf2.png
inst/vign/figure/leafletmap1.png
inst/vign/geojsonio_vignette.md
inst/vign/geojsonio_vignette.Rmd
inst/vign/geojson_spec.md
tests
tests/testthat
tests/testthat/test-projections.R
tests/testthat/test-construction.R
tests/testthat/test-centroid.R
tests/testthat/test-geojson_sp.R
tests/testthat/test-geojson_json.R
tests/testthat/test-bounds.R
tests/testthat/test-spatial_methods.R
tests/testthat/test-as.json.R
tests/testthat/us_citites_two_row.rds
tests/testthat/test-validate.R
tests/testthat/test-rbind_fill.R
tests/testthat/test-map_gist.R
tests/testthat/test-onload.R
tests/testthat/numericstates_list.rds
tests/testthat/helper-geojsonio.R
tests/testthat/test-sf_classes.R
tests/testthat/us_cities.rds
tests/testthat/test-geojson_list.R
tests/testthat/test-pretty.R
tests/testthat/test-crs_convert.R
tests/testthat/test-geojson_write.R
tests/testthat/numericstates.rds
tests/testthat/test-mapleaflet.R
tests/testthat/test-file_to_geojson.R
tests/testthat/test-lint.R
tests/testthat/test-geojson_read.R
tests/testthat/test-as.location.R
tests/test-all.R
NAMESPACE
NEWS.md
data
data/states.rda
data/us_cities.rda
data/canada_cities.rda
R
R/mapgist.R
R/geojson_json.R
R/globals.r
R/geojson_read.R
R/geojson_write.r
R/onLoad.R
R/geojsonio-package.r
R/geojson_list.R
R/mapleaflet.R
R/pipe.R
R/geojson_sp.R
R/topojson_read.R
R/as.location.R
R/geojson_style.R
R/construction.R
R/pretty.R
R/file_to_geojson.r
R/projections.r
R/as_spatial_methods.R
R/bounds.R
R/zzz.r
R/crs_convert.R
R/centroid.R
R/as.json.R
R/validate.R
R/rbindfill.R
R/lint.R
vignettes
vignettes/geojson_spec.Rmd
vignettes/maps.Rmd
vignettes/geojsonio_vignette.Rmd
README.md
MD5
build
build/vignette.rds
DESCRIPTION
man
man/states.Rd
man/pipe.Rd
man/geojson_style.Rd
man/file_to_geojson.Rd
man/geojson_list.Rd
man/canada_cities.Rd
man/validate.Rd
man/geojson_sp.Rd
man/as.json.Rd
man/bounds.Rd
man/projections.Rd
man/geojson_read.Rd
man/us_cities.Rd
man/geojson-add.Rd
man/geojsonio-deprecated.Rd
man/as.location.Rd
man/lint.Rd
man/map_leaf.Rd
man/geojsonio.Rd
man/map_gist.Rd
man/topojson_read.Rd
man/geojson_json.Rd
man/geojson_write.Rd
man/pretty.Rd
man/centroid.Rd
LICENSE
geojsonio documentation built on May 29, 2017, 6:40 p.m.