[android] geojson source - add conversion tests
This commit is contained in:
committed by
Ivo van Dongen
parent
02fd38ccbc
commit
6fa578aa4e
@@ -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
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"type": "Feature",
|
||||
"properties": {},
|
||||
"geometry": {
|
||||
"type": "LineString",
|
||||
"coordinates": [
|
||||
[
|
||||
5.1080,
|
||||
52.0960
|
||||
],
|
||||
[
|
||||
5.1080,
|
||||
52.0970
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"type": "Feature",
|
||||
"properties": {},
|
||||
"geometry": {
|
||||
"type": "MultiPoint",
|
||||
"coordinates": [
|
||||
[
|
||||
5.1080,
|
||||
52.0960
|
||||
],
|
||||
[
|
||||
5.1080,
|
||||
52.0970
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"type": "Feature",
|
||||
"properties": {},
|
||||
"geometry": {
|
||||
"type": "Point",
|
||||
"coordinates": [
|
||||
5.1080,
|
||||
52.0962
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user