diff options
author | Julian Sherollari <jdotsh@gmail.com> | 2018-08-07 11:03:48 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2019-01-18 15:08:03 +0000 |
commit | 9485871222fb3c8f5f2d058ae8c5c0ca13b0ce2c (patch) | |
tree | de99bf587b2bc885de1a04f3d01910a6572e4ff5 /tests/auto/qgeojson/07-geometrycollection.json | |
parent | 1afc3744c33b67c29361e7300641c4e7212702fb (diff) |
Add QGeoJson: a GeoJSON parser
Add a Class to convert a GeoJSON document to a QVariantList ready to be
used as Model in a MapItemView. It comes with autotests, example and
detailed documentation.
[ChangeLog][QtLocation] Added a GeoJSON parser which can be used to
annotate maps with tracks, polygonal boundaries, etc.
Fixes: QTBUG-64111
Change-Id: Ib06d3902a052f69f75ae40be5c9ab56023cad916
Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
Diffstat (limited to 'tests/auto/qgeojson/07-geometrycollection.json')
-rw-r--r-- | tests/auto/qgeojson/07-geometrycollection.json | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/auto/qgeojson/07-geometrycollection.json b/tests/auto/qgeojson/07-geometrycollection.json new file mode 100644 index 00000000..3e504f02 --- /dev/null +++ b/tests/auto/qgeojson/07-geometrycollection.json @@ -0,0 +1,39 @@ +{ + "type":"GeometryCollection", + "geometries":[ + { + "type": "MultiPoint", + "coordinates": [ + [11,60], [5.5,60.3], [5.7,58.90] + ] + }, + { + "type": "MultiLineString", + "coordinates": [ + [[13.5, 43], [10.73, 59.92]], + [[9.15, 45], [-3.15, 58.90]] + ] + }, + { + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [17.13, 51.11], + [30.54, 50.42], + [26.74, 58.36], + [17.13, 51.11] + ] + ], + [ + [ + [19.84, 41.33], + [30.45, 49.26], + [17.07, 50.10], + [19.84, 41.33] + ] + ] + ] + } + ] +} |