Modify ↓
#16138 closed defect (fixed)
Empty geometry objects in Json output
Reported by: | anonymous | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 18.04 |
Component: | Core geojson | Version: | |
Keywords: | template_report geojson | Cc: |
Description (last modified by )
What steps will reproduce the problem?
- Save downloaded OSM data as geojson
What is the expected result?
The output should be standard conforming, that is if there is no geometry available for the Feature there should be no geometry object present.
What happens instead?
An empty geometry object is added to the geojson Feature for some (not all) OSM multipolygons.
{ "type":"Feature", "properties":{ "landuse":"residential", "type":"multipolygon" }, "geometry":{ } }
Please provide any additional information below. Attach a screenshot if possible.
URL:http://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2016-11-06 20:18:38 +0100 (Sun, 06 Nov 2016) Build-Date:2016-11-06 21:45:03 Revision:11223 Relative:URL: ^/trunk Identification: JOSM/1.5 (11223 en) Windows 10 64-Bit Memory Usage: 488 MB / 488 MB (151 MB allocated, but free) Java version: 1.8.0_111-b14, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Screen: \Display0 1920x1200, \Display1 1920x1200 Maximum Screen Size: 1920x1200 Dataset consistency test: No problems found Plugins: + FastDraw (33182) + ImproveOsm (110) + Mapillary (v1.5.3) + OpeningHoursEditor (33185) + PicLayer (33148) + apache-commons (33668) + apache-http (32699) + cadastre-fr (33088) + editgpx (33004) + ejml (32680) + geotools (33380) + imagery_offset_db (33267) + jts (32699) + kendzi3d-resources (0.0.1) + log4j (32699) + measurement (33088) + opendata (33088) + reverter (33088) + terracer (33088) + turnrestrictions (33088) + undelete (33480) + utilsplugin2 (33328) Tagging presets: + http://openstreetmap.org.pl/kendzi/preset/current/roofspresets.xml + http://josm.openstreetmap.de/josmfile?page=Presets/LaneAttributes&preset + %UserProfile%\git\wheelchair-preset\gen\wheelchair.zip + https://github.com/<user.name>poole/military-preset/raw/gh-pages/gen/military.zip + https://github.com/<user.name>poole/beautified-JOSM-preset/raw/master/gen/josm.zip + %UserProfile%\git\preset-utils\josm_preset.xml Map paint styles: - http://josm.openstreetmap.de/josmfile?page=Styles/Lane_features_ryg&style - http://josm.openstreetmap.de/josmfile?page=Styles/Lane_features&style + http://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/NewHighwayColors&zip=1 Last errors/warnings: - W: java.io.IOException: Attribution is not loaded yet - W: java.io.IOException: Attribution is not loaded yet - W: java.io.IOException: Attribution is not loaded yet - W: java.net.SocketTimeoutException: Read timed out - W: java.net.SocketTimeoutException: Read timed out - W: java.net.SocketTimeoutException: Read timed out - W: java.net.SocketTimeoutException: Read timed out - W: java.net.SocketTimeoutException: Read timed out - W: GeoJSON: Failed to export multipolygon 2,171,891 - W: org.openstreetmap.josm.data.osm.MultipolygonBuilder$JoinedPolygonCreationException: Each node must connect exactly 2 ways
Attachments (1)
Change History (8)
comment:1 by , 7 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:3 by , 7 years ago
According to rfc7946 we should set the value to null
:
o A Feature object has a "type" member with the value "Feature". o A Feature object has a member with the name "geometry". The value of the geometry member SHALL be either a Geometry object as defined above or, in the case that the Feature is unlocated, a JSON null value. o A Feature object has a member with the name "properties". The value of the properties member is an object (any JSON object or a JSON null value).
comment:4 by , 7 years ago
Keywords: | geojson added |
---|---|
Milestone: | → 18.04 |
by , 6 years ago
OSM file + geojson file showing issue (and empty boundingbox issue)
comment:6 by , 6 years ago
Description: | modified (diff) |
---|
comment:7 by , 5 years ago
Component: | Core → Core geojson |
---|
Note:
See TracTickets
for help on using tickets.
can you please attach your .osm file? I don't know how to reproduce.