#geojson #geo

yanked geo-geojson

Converts geojson to geo-types

0.1.0 Jun 26, 2019

#14 in #geojson

ISC license

13KB
219 lines

geo-geojson

This crates converts geojson strings to GeometryCollection.

crate.io docs.rs

This is the missing link between the geo-types crate and the geojson crate and should probably be part of geojson.

Example

let geojson_str = fs::read_to_string("src/tests/demo.json")?;
let collection: geo_types::GeometryCollection<f64> = geo_geojson::from_str(&geojson_str)?;

lib.rs:

This crates converts geojson strings to GeometryCollection.

This is the missing link between the geo-types crate and the geojson crate and should probably be part of geojson.

Example

let geojson_str = fs::read_to_string("src/tests/demo.json")?;
let collection: geo_types::GeometryCollection<f64> = geo_geojson::from_str(&geojson_str)?;

This module contains conversion function from geojson types to GeometryCollection.

Dependencies

~1–1.6MB
~31K SLoC