Learn R Programming

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

geojsonio (version 0.1.4)

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

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Scott Chamberlain

Last Published

August 12th, 2015

Functions in geojsonio (0.1.4)

bounds

Get bounds for a list or geo_list
map_leaf

Make an interactive map locally
as.location

Convert a path or URL to a location object.
centroid

Get centroid for a geo_list
geojson_read

Read geojson or other formats from a local file or a URL
%>%

Pipe operator
us_cities

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

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

Convert spatial data files to GeoJSON from various formats.
validate

Validate a geoJSON file, json object, list, or Spatial class.
geojson_style

Style a data.frame or list prior to converting to geojson
geojson-add

Add together geo_list or json objects
projections

topojson projections and extensions
as.json

Convert inputs to JSON
geojsonio

I/O for GeoJSON
pretty

Convert json input to pretty printed output
states

This is the same data set from the ggplot2 library
lint

Lint geojson
canada_cities

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

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

Read topojson from a local file or a URL
geojson_write

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

Publish an interactive map as a GitHub gist