9565185fbb68c3c5304f97ad457c2e8fc3f9c69a
## [1.1.1](https://gitlab.com/oceanbox/Oceanbox.GeoJson/compare/v1.1.0...v1.1.1) (2025-09-02) ### Bug Fixes * move to netstandard2.1 ([ba51ab9](ba51ab9557)) * Switch to bun and fix ci ([cda0ef9](cda0ef99a4))
Oceanbox.GeoJson
Build
dotnet run
Package
dotnet run pack
Example usage
let geoJson = """
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [102.0, 0.5]
},
"properties": {
"prop0": "value0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[100.0, 0.0], [101.0, 0.0], [101.0, 1.0],
[100.0, 1.0], [100.0, 0.0]
]
]
}
}
]
}
"""
let readJson () =
let result = FeatureCollection.Decode geoJson
match result with
| Ok json -> printfn $"%A{json.Features}"
| Error e -> printfn $"decode failed: {e}"
let encodeJson (json: FeatureCollection) = json.Encode ()