geojson_fields
library
Classes
-
GeometryCollectionField
-
-
LineStringField
-
LineStringField
The incoming data looks like this:
[
{
"type": "LineString",
"coordinates": [
40,
5
,
41,
6
]
},
{
"type": "LineString",
"coordinates": [
40,
5
,
41,
6
]
}
]
-
MultiLineStringField
-
MultiLineStringField
The incoming data looks like this:
[
{
"type": "MultiLineString",
"coordinates": [
[
-73.96943, 40.78519
,
-73.96082, 40.78095
],
[
-73.96415, 40.79229
,
-73.95544, 40.78854
],
[
-73.97162, 40.78205
,
-73.96374, 40.77715
],
[
-73.97880, 40.77247
,
-73.97036, 40.76811
]
]
},
{
"type": "MultiLineString",
"coordinates": [
[
-73.96943, 40.78519
,
-73.96082, 40.78095
],
[
-73.96415, 40.79229
,
-73.95544, 40.78854
],
[
-73.97162, 40.78205
,
-73.96374, 40.77715
],
[
-73.97880, 40.77247
,
-73.97036, 40.76811
]
]
}
]
-
MultiPointField
-
MultiPointField
The incoming data looks like this:
[
{
"type": "MultiPoint",
"coordinates": [
100.0, 0.0
,
101.0, 1.0
]
},
{
"type": "MultiPoint",
"coordinates": [
100.0, 0.0
,
101.0, 1.0
]
}
]
-
MultiPolygonField
-
MultiPolygonField
The incoming data looks like this:
[
{
"type": "MultiPolygon",
"coordinates": [
[
[
102.0, 2.0
,
103.0, 2.0
,
103.0, 3.0
,
102.0, 3.0
,
102.0, 2.0
]
],
[
[
100.0, 0.0
,
101.0, 0.0
,
101.0, 1.0
,
100.0, 1.0
,
100.0, 0.0
],
[
100.2, 0.2
,
100.2, 0.8
,
100.8, 0.8
,
100.8, 0.2
,
100.2, 0.2
]
]
]
},
{
"type": "MultiPolygon",
"coordinates": [
[
[
102.0, 2.0
,
103.0, 2.0
,
103.0, 3.0
,
102.0, 3.0
,
102.0, 2.0
]
],
[
[
100.0, 0.0
,
101.0, 0.0
,
101.0, 1.0
,
100.0, 1.0
,
100.0, 0.0
],
[
100.2, 0.2
,
100.2, 0.8
,
100.8, 0.8
,
100.8, 0.2
,
100.2, 0.2
]
]
]
}
]
-
PointField
-
PointField
The incoming data looks like this:
[
{
"type": "Point",
"coordinates":
40.433,
5.4556
},
{
"type": "Point",
"coordinates":
12.345,
5.2343
}
]
-
PolygonField
-
PolygonField
The incoming data looks like this:
[
{
"type": "Polygon",
"coordinates": [
[
102.0,
2.0
,
103.0,
2.0
,
103.0,
3.0
,
102.0,
3.0
,
102.0,
2.0
]
]
},
{
"type": "Polygon",
"coordinates": [
[
102.0,
2.0
,
103.0,
2.0
,
103.0,
3.0
,
102.0,
3.0
,
102.0,
2.0
]
]
}
]