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

Reply via email to