summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgeojson/11-full.json
diff options
context:
space:
mode:
authorJulian Sherollari <jdotsh@gmail.com>2018-08-07 11:03:48 +0200
committerPaolo Angelelli <paolo.angelelli@qt.io>2019-01-18 15:08:03 +0000
commit9485871222fb3c8f5f2d058ae8c5c0ca13b0ce2c (patch)
treede99bf587b2bc885de1a04f3d01910a6572e4ff5 /tests/auto/qgeojson/11-full.json
parent1afc3744c33b67c29361e7300641c4e7212702fb (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/11-full.json')
-rw-r--r--tests/auto/qgeojson/11-full.json374
1 files changed, 374 insertions, 0 deletions
diff --git a/tests/auto/qgeojson/11-full.json b/tests/auto/qgeojson/11-full.json
new file mode 100644
index 00000000..cd8680c9
--- /dev/null
+++ b/tests/auto/qgeojson/11-full.json
@@ -0,0 +1,374 @@
+{
+ "type":"FeatureCollection",
+ "features":[
+ {
+ "type":"Feature",
+ "geometry":{
+ "type":"Point",
+ "coordinates":[
+ 3,
+ 11
+ ]
+ },
+ "properties":{
+ "name":null
+ }
+ },
+ {
+ "type":"Feature",
+ "geometry":{
+ "type":"MultiPoint",
+ "coordinates":[
+ [
+ 3,
+ 11
+ ],
+ [
+ 3,
+ 11.5
+ ],
+ [
+ 3,
+ 12
+ ]
+ ]
+ },
+ "properties":{
+ "name":null
+ }
+ },
+ {
+ "type":"Feature",
+ "geometry":{
+ "type":"LineString",
+ "coordinates":[
+ [
+ 1,
+ 11
+ ],
+ [
+ 3,
+ 13
+ ],
+ [
+ 3,
+ 15
+ ]
+ ]
+ },
+ "properties":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 11,
+ 6
+ ],
+ [
+ 10,
+ 6
+ ],
+ [
+ 10,
+ 7
+ ]
+ ]
+ ]
+ },
+ "properties":{
+ "name":"MiX creation",
+ "implemented by":"Julian Sherollari",
+ "creation quality":10,
+ "implementation quality":3.14159
+ }
+ },
+ {
+ "type":"Feature",
+ "geometry":{
+ "type":"MultiPolygon",
+ "coordinates":[
+ [
+ [
+ [
+ 4,
+ 10
+ ],
+ [
+ 5,
+ 10
+ ],
+ [
+ 5,
+ 9
+ ],
+ [
+ 4,
+ 9
+ ],
+ [
+ 4,
+ 10
+ ]
+ ]
+ ],
+ [
+ [
+ [
+ 1,
+ 8
+ ],
+ [
+ 5,
+ 8
+ ],
+ [
+ 5,
+ 6
+ ],
+ [
+ 1,
+ 6
+ ],
+ [
+ 1,
+ 8
+ ]
+ ]
+ ]
+ ]
+ },
+ "properties":{
+ "name":null
+ }
+ },
+ {
+ "type":"Feature",
+ "geometry":{
+ "type":"GeometryCollection",
+ "geometries":[
+ {
+ "type":"Point",
+ "coordinates":[
+ 13,
+ 4
+ ]
+ },
+ {
+ "type":"Polygon",
+ "coordinates":[
+ [
+ [
+ 12,
+ 2
+ ],
+ [
+ 13,
+ 2
+ ],
+ [
+ 13,
+ 1
+ ],
+ [
+ 12,
+ 1
+ ],
+ [
+ 12,
+ 2
+ ]
+ ]
+ ]
+ }
+ ]
+ },
+ "properties":{
+ "name":null
+ }
+ }
+ ]
+}