Learn R Programming

geojsonio (version 0.11.3)

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

6,082

Version

0.11.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

September 6th, 2023

Functions in geojsonio (0.11.3)

centroid

Get centroid for a geo_list
geo2topo

GeoJSON to TopoJSON and back
as.json

Convert inputs to JSON
geojson_json

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

Convert a path or URL to a location object.
bounds

Get bounds for a list or geo_list
geojson-add

Add together geo_list or json objects
file_to_geojson

Convert spatial data files to GeoJSON from various formats.
map_gist

Publish an interactive map as a GitHub gist
geojsonio

I/O for GeoJSON
projections

topojson projections and extensions
geojson_read

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

This is the same data set from the ggplot2 library
geojson_list

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

Convert objects to spatial classes
us_cities

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

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

Read topojson from a local file or a URL
map_leaf

Make an interactive map locally
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
%>%

Pipe operator
topojson_write

Write TopoJSON from various inputs
postgis

PostGIS setup
topojson_json

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

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

Convert json input to pretty printed output
geojson_sf

Convert objects to an sf class
geojson_atomize

Atomize