placemark / check-geojson

a checker for the geojson format. goes beyond a schema, checking semantics and producing character-level warnings.
http://check-geojson.docs.placemark.io/
MIT License
72 stars 2 forks source link

Weird failure when given Geometry #31

Closed stevage closed 4 months ago

stevage commented 4 months ago

I passed this object:

{
  "type": "Polygon",
  "coordinates": [
    [
      [
        58998.094482,
        244917.648149
      ],
      [
        58987.59214,
        244906.9383020001
      ]
    ]
  ]
}

It returns

Object { message: "Invalid JSON: e.charAt is not a function", from: 0, to: 0, severity: "error" }

I'm not sure if:

a) it doesn't support checking geometries (not clear from the README) b) if it's just failing weirdly

(Obviously it's an invalid Geometry)

stevage commented 4 months ago

Oh. check-geojson requires a string to be passed. #17