rust-geojson
Library for serializing the GeoJSON vector GIS file format
Examples
Reading
use GeoJson;
let geojson_str = r#"
{
"type": "Feature",
"properties": {
"name": "Firestone Grill"
},
"geometry": {
"type": "Point",
"coordinates": [-120.66029,35.2812]
}
}
"#;
let geojson = geojson_str..unwrap;
Writing
use HashMap;
use ToJson;
use ;
let geometry = new;
let mut properties = new;
properties.insert;
let geojson = Feature;
let geojson_string = geojson.to_string;
License
Licensed under version two of the Apache License.