All Projects → georust → geojson

georust / geojson

Licence: Apache-2.0, MIT licenses found Licenses found Apache-2.0 LICENSE-APACHE MIT LICENSE-MIT
Library for serializing the GeoJSON vector GIS file format

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to geojson

Go Geom
Package geom implements efficient geometry types for geospatial applications.
Stars: ✭ 456 (+166.67%)
Mutual labels:  geojson, geospatial
Geotools
Official GeoTools repository
Stars: ✭ 1,109 (+548.54%)
Mutual labels:  geojson, geospatial
Magellan
Geo Spatial Data Analytics on Spark
Stars: ✭ 507 (+196.49%)
Mutual labels:  geojson, geospatial
xyz-hub
XYZ Hub is a RESTful web service for the access and management of geospatial data.
Stars: ✭ 43 (-74.85%)
Mutual labels:  geojson, geospatial
L7
🌎 Large-scale WebGL-powered Geospatial Data Visualization analysis framework which relies on Mapbox GL or AMap to render basemaps.
Stars: ✭ 2,517 (+1371.93%)
Mutual labels:  geojson, geospatial
geojson-mongo-import.py
Import GeoJSON file into MongoDB using Python
Stars: ✭ 20 (-88.3%)
Mutual labels:  geojson, geospatial
Lawn
⛔ ARCHIVED ⛔ turf.js R client
Stars: ✭ 57 (-66.67%)
Mutual labels:  geojson, geospatial
geojson
GeoJSON classes for R
Stars: ✭ 32 (-81.29%)
Mutual labels:  geojson, geospatial
Kepler
The open source full-stack geosocial network platform
Stars: ✭ 125 (-26.9%)
Mutual labels:  geojson, geospatial
Geojson2h3
Conversion utilities between H3 indexes and GeoJSON
Stars: ✭ 93 (-45.61%)
Mutual labels:  geojson, geospatial
GeoJSON.jl
Utilities for working with GeoJSON data in Julia
Stars: ✭ 46 (-73.1%)
Mutual labels:  geojson, geospatial
krawler
A minimalist (geospatial) ETL
Stars: ✭ 51 (-70.18%)
Mutual labels:  geojson, geospatial
pygeoif
Basic implementation of the __geo_interface__
Stars: ✭ 44 (-74.27%)
Mutual labels:  geojson, geospatial
Orb
Types and utilities for working with 2d geometry in Golang
Stars: ✭ 378 (+121.05%)
Mutual labels:  geojson, geospatial
xyz-spaces-python
Manage your XYZ Hub or HERE Data Hub spaces from Python.
Stars: ✭ 29 (-83.04%)
Mutual labels:  geojson, geospatial
Wellknown
WKT <-> GeoJSON
Stars: ✭ 15 (-91.23%)
Mutual labels:  geojson, geospatial
turf-go
A Go language port of Turf.js
Stars: ✭ 41 (-76.02%)
Mutual labels:  geojson, geospatial
skynet-scrub-server
Backing store for developmentseed/skynet-scrub
Stars: ✭ 13 (-92.4%)
Mutual labels:  geojson, geospatial
Geoswift
The Swift Geometry Engine.
Stars: ✭ 1,267 (+640.94%)
Mutual labels:  geojson, geospatial
Php Crud Api
Single file PHP script that adds a REST API to a SQL database
Stars: ✭ 2,904 (+1598.25%)
Mutual labels:  geojson, geospatial

geojson

Documentation

Library for serializing the GeoJSON vector GIS file format

Minimum Rust Version

This library requires a minimum Rust version of 1.34 (released April 11 2019)

Examples

Reading

use geojson::GeoJson;

let geojson_str = r#"
{
    "type": "Feature",
    "properties": {
        "name": "Firestone Grill"
    },
    "geometry": {
        "type": "Point",
        "coordinates": [-120.66029,35.2812]
    }
}
"#;

let geojson = geojson_str.parse::<GeoJson>().unwrap();

Writing

use geojson::{Feature, GeoJson, Geometry, Value, JsonObject, JsonValue};

let geometry = Geometry::new(
    Value::Point(vec![-120.66029,35.2812])
);

let mut properties = JsonObject::new();
properties.insert(
    String::from("name"),
    JsonValue::from("Firestone Grill"),
);

let geojson = GeoJson::Feature(Feature {
    bbox: None,
    geometry: Some(geometry),
    id: None,
    properties: Some(properties),
    foreign_members: None,
});

let geojson_string = geojson.to_string();

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].