Hi, One closing "}" seems to be missing. There is EPSG:0"}}} but should be one more. Otherwise validates in jsonling.com and in geojsonlint.com.
{ "type": "FeatureCollection", "features": [ { "type": "Feature", "properties" : null, "geometry": {"type":"Polygon","coordinates":[[[207,483],[343,524],[298,386],[207,483]]],"crs":{"type":"name","properties":{"name":"EPSG:0"}}} ] } I was testing another part of GeoJSON (winding order of polygons) while I noticed that the code that is run at geojsonlint.com has been changed so that it is nagging about crs. I asked and Sean Gillies answered: " The geojsonhint project is at https://github.com/mapbox/geojsonhint. Releases before 2.0 (such as 1.2.1, from May 20016) will validate legacy GeoJSON." -Jukka- -----Alkuperäinen viesti----- Lähettäjä: edgar.sol...@web.de [mailto:edgar.sol...@web.de] Lähetetty: 15. marraskuuta 2016 12:03 Vastaanottaja: OpenJump develop and use <jump-pilot-devel@lists.sourceforge.net> Aihe: Re: [JPP-Devel] Invalid GeoJSON if no attributes Jukka, please try r5188.. ede On 15.11.2016 10:31, edgar.sol...@web.de wrote: > from http://geojson.org/geojson-spec.html > " > A GeoJSON object with the type "Feature" is a feature object. > > A feature object must have a member with the name "geometry". The value of > the geometry member is a geometry object as defined above or a JSON null > value. > > A feature object must have a member with the name "properties". The value of > the properties member is an object (any JSON object or a JSON null value). > " > > so that means > "properties": null > which validates on http://geojsonlint.com/ > > will fix it, did you came across a parser that did not like OJ generated > GeoJSON because of that? > > ..ede > On 15.11.2016 09:57, Rahkonen Jukka (MML) wrote: >> Hi, >> >> In GeoJSON FeatureCollection must have "properties" member even if >> there are no attributes. This output from OpenJUMP r5186 does not >> validate >> >> { >> "type": "FeatureCollection", >> >> "features": [ >> { "type": "Feature", "geometry": >> {"type":"Polygon","coordinates":[[[278,423],[483,505],[478,293],[278, >> 423]]],"crs":{"type":"name","properties":{"name":"EPSG:0"}}} } ] >> >> } >> >> I am not sure if this is the right fix but at least it validates: >> { "type": "Feature", "properties": { }, "geometry": >> >> It seems that GeoJSONLint http://geojsonlint.com/ does not like the crs >> member any more because it belongs to older, year 2008 version of GeoJSON. >> However, I think that OpenJUMP should still output the old version that >> supports projections. I try to find some more flexible validator. >> >> -Jukka Rahkonen- >> --------------------------------------------------------------------- >> --------- _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> > > ---------------------------------------------------------------------- > -------- _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ------------------------------------------------------------------------------ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel ------------------------------------------------------------------------------ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel