semantic-release-bot adc4383b91 chore(release): 1.0.2
## [1.0.2](https://gitlab.com/oceanbox/Oceanbox.GeoJson/compare/v1.0.1...v1.0.2) (2022-09-08)

### Bug Fixes

* don't use dotnet lockfile ([9b86b40](9b86b4000f))
2022-09-08 07:38:32 +00:00
2022-04-11 11:58:12 +02:00
2022-04-11 11:58:12 +02:00
2022-04-11 11:58:12 +02:00
2022-09-08 07:38:32 +00:00
2022-04-11 11:58:12 +02:00
2022-04-11 11:58:12 +02:00
2022-04-11 11:58:12 +02:00
2022-04-11 11:58:12 +02:00
2022-09-08 07:38:32 +00:00
2022-04-11 11:58:12 +02:00
2022-04-11 11:58:12 +02:00
2022-04-11 11:58:12 +02:00
2022-04-11 11:58:12 +02:00
2022-04-11 11:58:12 +02:00
2022-04-12 20:58:58 +02:00
2022-09-08 07:38:32 +00:00

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 ()
Description
No description provided
Readme MIT 286 KiB
v1.1.1 Latest
2025-09-02 08:29:26 +00:00
Languages
F# 62.3%
Nix 34%
Just 3.7%