rmapshaper: Edit 'GeoJSON' and Spatial Objects
Version 0.2.0

Edit and simplify 'geojson' and 'Spatial' objects. This is wrapper around the 'mapshaper' 'javascript' library to perform topologically-aware polygon simplification, as well as other operations such as clipping, erasing, dissolving, and converting 'multi-part' to 'single-part' geometries. It relies on the 'geojsonio' package for working with 'geojson' objects, and the 'sp' and 'rgdal' packages for working with 'Spatial' objects.

AuthorAndy Teucher [aut, cre], Kenton Russell [aut] (JavaScript support), Matthew Bloch [cph] (mapshaper Javascript library)
Date of publication2017-02-16 10:57:47
MaintainerAndy Teucher <andy.teucher@gmail.com>
LicenseMIT + file LICENSE
Version0.2.0
URL https://github.com/ateucher/rmapshaper
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("rmapshaper")

Getting started

README.md
rmapshaper Basics

Popular man pages

apply_mapshaper_commands: Apply a mapshaper command string to a geojson object
ms_dissolve: Aggregate shapes in a polygon or point layer.
ms_explode: Convert multipart lines or polygons to singlepart
ms_filter_fields: Delete fields in the attribute table
ms_filter_islands: Remove small detached polygons (islands)
ms_simplify: Topologically-aware geometry simplification.
rmapshaper: rmapshaper: A package for editing spatial objects.
See all...

All man pages Function index File listing

Man pages

apply_mapshaper_commands: Apply a mapshaper command string to a geojson object
drop_null_geometries: Drop features from a 'geo_list' or 'geo_json'...
ms_clip: Remove features or portions of features that fall outside a...
ms_dissolve: Aggregate shapes in a polygon or point layer.
ms_erase: Remove features or portions of features that fall inside a...
ms_explode: Convert multipart lines or polygons to singlepart
ms_filter_fields: Delete fields in the attribute table
ms_filter_islands: Remove small detached polygons (islands)
ms_innerlines: Create a line layer consisting of shared boundaries with no...
ms_lines: Convert polygons to topological boundaries (lines)
ms_points: Create points from a polygon layer
ms_simplify: Topologically-aware geometry simplification.
rmapshaper: rmapshaper: A package for editing spatial objects.

Functions

GeoJSON_to_sp Source code
add_dummy_id_command Source code
apply_mapshaper_commands Man page Source code
check_character_input Source code
check_overlay_bbox Source code
class_geo_json Source code
clip_erase_geo_list Source code
clip_erase_json Source code
clip_erase_sp Source code
col_classes Source code
curly_brace_na Source code
dissolve_sp Source code
drop_null_geometries Man page Source code
drop_null_geometries.geo_json Source code
drop_null_geometries.geo_list Source code
explode_sp Source code
make_dissolve_call Source code
make_filterfields_call Source code
make_filterislands_call Source code
make_lines_call Source code
make_points_call Source code
make_simplify_call Source code
mapshaper_clip_erase Source code
ms_clip Man page Source code
ms_clip.SpatialLines Source code
ms_clip.SpatialPoints Source code
ms_clip.SpatialPolygons Source code
ms_clip.character Source code
ms_clip.geo_json Source code
ms_clip.geo_list Source code
ms_compact Source code
ms_dissolve Man page Source code
ms_dissolve.SpatialPoints Source code
ms_dissolve.SpatialPolygons Source code
ms_dissolve.character Source code
ms_dissolve.geo_json Source code
ms_dissolve.geo_list Source code
ms_erase Man page Source code
ms_erase.SpatialLines Source code
ms_erase.SpatialPoints Source code
ms_erase.SpatialPolygons Source code
ms_erase.character Source code
ms_erase.geo_json Source code
ms_erase.geo_list Source code
ms_explode Man page Source code
ms_explode.SpatialLines Source code
ms_explode.SpatialPolygons Source code
ms_explode.character Source code
ms_explode.geo_json Source code
ms_explode.geo_list Source code
ms_filter_fields Man page Source code
ms_filter_fields.SpatialLinesDataFrame Source code
ms_filter_fields.SpatialPointsDataFrame Source code
ms_filter_fields.SpatialPolygonsDataFrame Source code
ms_filter_fields.character Source code
ms_filter_fields.geo_json Source code
ms_filter_fields.geo_list Source code
ms_filter_fields_sp Source code
ms_filter_islands Man page Source code
ms_filter_islands.SpatialPolygons Source code
ms_filter_islands.character Source code
ms_filter_islands.geo_json Source code
ms_filter_islands.geo_list Source code
ms_filter_islands_sp Source code
ms_innerlines Man page Source code
ms_innerlines.SpatialPolygons Source code
ms_innerlines.character Source code
ms_innerlines.geo_json Source code
ms_innerlines.geo_list Source code
ms_lines Man page Source code
ms_lines.SpatialPolygons Source code
ms_lines.character Source code
ms_lines.geo_json Source code
ms_lines.geo_list Source code
ms_make_ctx Source code
ms_points Man page Source code
ms_points.SpatialPolygons Source code
ms_points.character Source code
ms_points.geo_json Source code
ms_points.geo_list Source code
ms_simplify Man page Source code
ms_simplify.SpatialLines Source code
ms_simplify.SpatialPolygons Source code
ms_simplify.character Source code
ms_simplify.geo_json Source code
ms_simplify.geo_list Source code
ms_simplify_json Source code
ms_simplify_sp Source code
ms_sp Source code
restore_classes Source code
rmapshaper Man page
rmapshaper-package Man page
sp_to_GeoJSON Source code

Files

inst
inst/mapshaper
inst/mapshaper/LICENSE-mapshaper
inst/mapshaper/LICENSE-minimist
inst/mapshaper/LICENSE-d3-dsv
inst/mapshaper/LICENSE-rw
inst/mapshaper/LICENSE-open
inst/mapshaper/mapshaper-browserify.js
inst/mapshaper/README.md
inst/mapshaper/LICENSE-iconv-lite
inst/mapshaper/LICENSE-optimist
inst/mapshaper/LICENSE-rbush
inst/mapshaper/LICENSE-wordwrap
inst/mapshaper/node_packages.csv
inst/doc
inst/doc/rmapshaper.R
inst/doc/rmapshaper.Rmd
inst/doc/rmapshaper.html
tests
tests/testthat.R
tests/testthat
tests/testthat/test-utils.R
tests/testthat/test-clip_erase.R
tests/testthat/test-points.R
tests/testthat/test-explode.R
tests/testthat/test-filter_islands.R
tests/testthat/test-innerlines.R
tests/testthat/test-lines.R
tests/testthat/test-drop_null_geometries.R
tests/testthat/test-simplify.R
tests/testthat/test-dissolve.R
tests/testthat/test-filter_fields.R
NAMESPACE
NEWS.md
R
R/utils.R
R/rmapshaper.R
R/points.R
R/dissolve.R
R/filter_islands.R
R/filter_fields.R
R/clip_erase.R
R/simplify.R
R/lines.R
R/explode.R
R/inner_lines.R
R/drop_null_geometries.R
vignettes
vignettes/rmapshaper.Rmd
README.md
MD5
build
build/vignette.rds
DESCRIPTION
man
man/ms_lines.Rd
man/ms_points.Rd
man/ms_filter_fields.Rd
man/ms_simplify.Rd
man/ms_dissolve.Rd
man/rmapshaper.Rd
man/apply_mapshaper_commands.Rd
man/ms_erase.Rd
man/ms_innerlines.Rd
man/ms_explode.Rd
man/ms_filter_islands.Rd
man/drop_null_geometries.Rd
man/ms_clip.Rd
LICENSE
rmapshaper documentation built on May 20, 2017, 4:13 a.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.