Learn R Programming

wellknown (version 0.7.4)

Convert Between 'WKT' and 'GeoJSON'

Description

Convert 'WKT' to 'GeoJSON' and 'GeoJSON' to 'WKT'. Functions included for converting between 'GeoJSON' to 'WKT', creating both 'GeoJSON' features, and non-features, creating 'WKT' from R objects (e.g., lists, data.frames, vectors), and linting 'WKT'.

Copy Link

Version

Install

install.packages('wellknown')

Monthly Downloads

14

Version

0.7.4

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Scott Chamberlain

Last Published

May 25th, 2021

Functions in wellknown (0.7.4)

linestring

Make WKT linestring objects
as_json

Convert geojson R list to JSON
geometrycollection

Make WKT geometrycollection objects
as_featurecollection

As featurecollection
get_centroid

Get a centroid from WKT or geojson
bounding_wkt

Generate Bounding Boxes
geojson2wkt

Convert GeoJSON-like objects to WKT
circularstring

Make WKT circularstring objects
multilinestring

Make WKT multilinestring objects
lint

Validate WKT strings
point

Make WKT point objects
multipolygon

Make WKT multipolygon objects
multipoint

Make WKT multipoint objects
wellknown-package

wellknown
wkb

Convert WKT to WKB
sf_convert

Convert spatial objects to WKT
properties

Add properties to a GeoJSON object
polygon

Make WKT polygon objects
wkt_reverse

Reverses the points within a geometry.
wkt_correct

Correct Incorrectly Oriented WKT Objects
wkt_centroid

Extract Centroid
wkt_coords

Extract Latitude and Longitude from WKT polygons
validate_wkt

Validate WKT objects
wktview

Visualize geojson from a character string or list
us_cities

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

Convert WKT Objects into Bounding Boxes
wkt2geojson

Convert WKT to GeoJSON-like objects.