summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKTestApp/src/main/res
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2017-03-23 17:54:22 +0200
committerIvo van Dongen <ivovandongen@users.noreply.github.com>2017-03-28 15:44:22 +0300
commit6fa578aa4e372c8d91dc617970386290e4571d5c (patch)
tree454093f6033a6638926c863f3bbd314881a84262 /platform/android/MapboxGLAndroidSDKTestApp/src/main/res
parent02fd38ccbc6a4070162a2b9167d7f8d42b3706a0 (diff)
downloadqtlocation-mapboxgl-6fa578aa4e372c8d91dc617970386290e4571d5c.tar.gz
[android] geojson source - add conversion tests
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/main/res')
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_feature_collection.geojson26
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_feature_properties.geojson21
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_line_string_feature.geojson17
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_multi_line_string_feature.geojson29
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_multi_point_feature.geojson17
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_multi_polygon_feature.geojson49
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_point_feature.geojson11
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_polygon_feature.geojson27
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_polygon_with_hole_feature.geojson45
9 files changed, 242 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_feature_collection.geojson b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_feature_collection.geojson
new file mode 100644
index 0000000000..4a0d1968cf
--- /dev/null
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_feature_collection.geojson
@@ -0,0 +1,26 @@
+{
+ "type": "FeatureCollection",
+ "features": [
+ {
+ "type": "Feature",
+ "geometry": {
+ "type": "Point",
+ "coordinates": [
+ 5.1080,
+ 52.0962
+ ]
+ }
+ },
+ {
+ "type": "Feature",
+ "properties": {},
+ "geometry": {
+ "type": "Point",
+ "coordinates": [
+ 5.1090,
+ 52.0962
+ ]
+ }
+ }
+ ]
+} \ No newline at end of file
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_feature_properties.geojson b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_feature_properties.geojson
new file mode 100644
index 0000000000..751c0a4939
--- /dev/null
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_feature_properties.geojson
@@ -0,0 +1,21 @@
+{
+ "type": "Feature",
+ "id": 1,
+ "properties": {
+ "null_prop": null,
+ "integer_prop": 10000,
+ "float_prop": 10000.10,
+ "string_prop": "my_string",
+ "bool_prop": true,
+ "object_prop": {
+ "nested_string_prop": "my_string"
+ }
+ },
+ "geometry": {
+ "type": "Point",
+ "coordinates": [
+ 5.112419128417969,
+ 52.09622422366772
+ ]
+ }
+}
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_line_string_feature.geojson b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_line_string_feature.geojson
new file mode 100644
index 0000000000..c63c23d87a
--- /dev/null
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_line_string_feature.geojson
@@ -0,0 +1,17 @@
+{
+ "type": "Feature",
+ "properties": {},
+ "geometry": {
+ "type": "LineString",
+ "coordinates": [
+ [
+ 5.1080,
+ 52.0960
+ ],
+ [
+ 5.1080,
+ 52.0970
+ ]
+ ]
+ }
+} \ No newline at end of file
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_multi_line_string_feature.geojson b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_multi_line_string_feature.geojson
new file mode 100644
index 0000000000..cae631d987
--- /dev/null
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_multi_line_string_feature.geojson
@@ -0,0 +1,29 @@
+{
+ "type": "Feature",
+ "properties": {},
+ "geometry": {
+ "type": "MultiLineString",
+ "coordinates": [
+ [
+ [
+ 5.1080,
+ 52.0960
+ ],
+ [
+ 5.1080,
+ 52.0970
+ ]
+ ],
+ [
+ [
+ 5.1090,
+ 52.0960
+ ],
+ [
+ 5.1090,
+ 52.0970
+ ]
+ ]
+ ]
+ }
+} \ No newline at end of file
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_multi_point_feature.geojson b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_multi_point_feature.geojson
new file mode 100644
index 0000000000..6be05156e7
--- /dev/null
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_multi_point_feature.geojson
@@ -0,0 +1,17 @@
+{
+ "type": "Feature",
+ "properties": {},
+ "geometry": {
+ "type": "MultiPoint",
+ "coordinates": [
+ [
+ 5.1080,
+ 52.0960
+ ],
+ [
+ 5.1080,
+ 52.0970
+ ]
+ ]
+ }
+} \ No newline at end of file
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_multi_polygon_feature.geojson b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_multi_polygon_feature.geojson
new file mode 100644
index 0000000000..469a054c4e
--- /dev/null
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_multi_polygon_feature.geojson
@@ -0,0 +1,49 @@
+{
+ "type": "Feature",
+ "properties": {},
+ "geometry": {
+ "type": "MultiPolygon",
+ "coordinates": [
+ [
+ [
+ [
+ 5.112419128417969,
+ 52.09622422366772
+ ],
+ [
+ 5.112419128417969,
+ 52.094062282906954
+ ],
+ [
+ 5.115251541137695,
+ 52.094747787662364
+ ],
+ [
+ 5.112419128417969,
+ 52.09622422366772
+ ]
+ ]
+ ],
+ [
+ [
+ [
+ 5.11662483215332,
+ 52.09485324899753
+ ],
+ [
+ 5.11662483215332,
+ 52.09306037239377
+ ],
+ [
+ 5.120058059692383,
+ 52.093376767618174
+ ],
+ [
+ 5.11662483215332,
+ 52.09485324899753
+ ]
+ ]
+ ]
+ ]
+ }
+}
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_point_feature.geojson b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_point_feature.geojson
new file mode 100644
index 0000000000..ae069de151
--- /dev/null
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_point_feature.geojson
@@ -0,0 +1,11 @@
+{
+ "type": "Feature",
+ "properties": {},
+ "geometry": {
+ "type": "Point",
+ "coordinates": [
+ 5.1080,
+ 52.0962
+ ]
+ }
+}
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_polygon_feature.geojson b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_polygon_feature.geojson
new file mode 100644
index 0000000000..2fc9f88669
--- /dev/null
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_polygon_feature.geojson
@@ -0,0 +1,27 @@
+{
+ "type": "Feature",
+ "properties": {},
+ "geometry": {
+ "type": "Polygon",
+ "coordinates": [
+ [
+ [
+ 5.112419128417969,
+ 52.09622422366772
+ ],
+ [
+ 5.112419128417969,
+ 52.094062282906954
+ ],
+ [
+ 5.115251541137695,
+ 52.094747787662364
+ ],
+ [
+ 5.112419128417969,
+ 52.09622422366772
+ ]
+ ]
+ ]
+ }
+}
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_polygon_with_hole_feature.geojson b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_polygon_with_hole_feature.geojson
new file mode 100644
index 0000000000..1008e2e937
--- /dev/null
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/raw/test_polygon_with_hole_feature.geojson
@@ -0,0 +1,45 @@
+{
+ "type": "Feature",
+ "properties": {},
+ "geometry": {
+ "type": "Polygon",
+ "coordinates": [
+ [
+ [
+ 5.112419128417969,
+ 52.09622422366772
+ ],
+ [
+ 5.112419128417969,
+ 52.094062282906954
+ ],
+ [
+ 5.115251541137695,
+ 52.094747787662364
+ ],
+ [
+ 5.112419128417969,
+ 52.09622422366772
+ ]
+ ],
+ [
+ [
+ 5.1127249002456665,
+ 52.094362192533545
+ ],
+ [
+ 5.114580988883972,
+ 52.0948104053602
+ ],
+ [
+ 5.11263906955719,
+ 52.095845232479846
+ ],
+ [
+ 5.1127249002456665,
+ 52.094362192533545
+ ]
+ ]
+ ]
+ }
+}