Learn R Programming

⚠️There's a newer version (0.11.3) of this package.Take me there.

geojsonio (version 0.11.2)

Convert Data from and to 'GeoJSON' or 'TopoJSON'

Description

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'.

Copy Link

Version

Install

install.packages('geojsonio')

Monthly Downloads

4,851

Version

0.11.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Michael Mahoney

Last Published

August 21st, 2023

Functions in geojsonio (0.11.2)

geojson_sp

Convert objects to spatial classes
geojson_json

Convert many input types with spatial data to geojson specified as a json string
geojson_list

Convert many input types with spatial data to geojson specified as a list
geojson_read

Read geojson or other formats from a local file or a URL
geojsonio

I/O for GeoJSON
map_leaf

Make an interactive map locally
geojson_write

Convert many input types with spatial data to a geojson file
topojson_json

Convert many input types with spatial data to TopoJSON as a JSON string
geojson_sf

Convert objects to an sf class
geojson_style

Style a data.frame or list prior to converting to geojson
map_gist

Publish an interactive map as a GitHub gist
topojson_read

Read topojson from a local file or a URL
topojson_write

Write TopoJSON from various inputs
states

This is the same data set from the ggplot2 library
topojson_list

Convert many input types with spatial data to TopoJSON as a list
pretty

Convert json input to pretty printed output
projections

topojson projections and extensions
us_cities

This is the same data set from the maps library, named differently
postgis

PostGIS setup
%>%

Pipe operator
centroid

Get centroid for a geo_list
geojson-add

Add together geo_list or json objects
file_to_geojson

Convert spatial data files to GeoJSON from various formats.
geojson_write.SpatialRings

Deprecated functions from geojsonio
as.json

Convert inputs to JSON
bounds

Get bounds for a list or geo_list
geojson_atomize

Atomize
as.location

Convert a path or URL to a location object.
geo2topo

GeoJSON to TopoJSON and back
canada_cities

This is the same data set from the maps library, named differently