[Marble-devel] Review Request 111810: GeoJSON parser adapted to match the standard.

Commit Hook null at kde.org
Thu Sep 19 10:19:23 UTC 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/111810/
-----------------------------------------------------------

(Updated Sept. 19, 2013, 10:19 a.m.)


Status
------

This change has been marked as submitted.


Review request for Marble.


Description
-------

-Changed Marble's GeoJSON parser (which was a test for just matching Kothic's GeoJSON like format) to match the exact GeoJSON standard : 

http://www.geojson.org/geojson-spec.html#id3

-Supported geometry types :

Point
MultiPoint
LineString
MultiLineString
Polygon
MultiPolygon

-Not supported geometry types:

GeometryCollection

-Geometry properties are compared with GeoDataFeature's OsmVisualCategory to see if any of the properties matches a style to give to the geometry. If not it will be shown as a black line.


Diffs
-----

  src/plugins/runner/json/JsonParser.h 4fb072c 
  src/plugins/runner/json/JsonParser.cpp 86cf66b 
  src/plugins/runner/json/JsonPlugin.cpp e7ff770 
  src/plugins/runner/json/JsonRunner.cpp 2098e1f 

Diff: http://git.reviewboard.kde.org/r/111810/diff/


Testing
-------

Some test files :

http://tile.openstreetmap.us/vectiles-skeletron/12/1206/1539.json (this file will matches road styles)

http://tile.openstreetmap.us/vectiles-buildings/12/1206/1539.json (this file matches some other geometry types)

http://tile.openstreetmap.us/vectiles-water-areas/12/1206/1539.json (this file matches some other multi geometry types)


Thanks,

Ander Pijoan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20130919/4cc38594/attachment.html>


More information about the Marble-devel mailing list