JuliaGeo / GeoJSON.jl

Utilities for working with GeoJSON data in Julia
https://juliageo.org/GeoJSON.jl/stable/
MIT License
68 stars 10 forks source link

geojson strips 'properties' field from a feature #7

Closed jeremiahpslewis closed 8 years ago

jeremiahpslewis commented 9 years ago

When converting a geoJSON object to either a dict or printing a json string, the "properties" element of each Feature seems not to be included.

a = """{
    "properties": {
        "Ã": "Ã"
    },
    "type": "Feature",
    "geometry": null,
    "crs": {
        "type": "link",
        "properties": {
            "href": "data.crs",
            "type": "ogcwkt"
        }
    }
}"""

a = GeoJSON.parse(a)
geojson(a)

output:

"{\"geometry\":null,\"type\":\"Feature\",\"crs\":{\"properties\":{\"href\":\"data.crs\",\"type\":\"ogcwkt\"},\"type\":\"link\"}}"
yeesian commented 9 years ago

That's embarrassing.. thanks!

yeesian commented 9 years ago

I'm sorry I forgot it's not tagged yet; re-opening this issue. If you're waiting for the fix, you can do Pkg.checkout("GeoJSON") to fetch the latest changes from master.

yeesian commented 8 years ago

closed by https://github.com/JuliaLang/METADATA.jl/pull/5406