TROBDB Webservices Upload: Unterschied zwischen den Versionen

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche
(Upload examples)
(Upload examples)
Zeile 1: Zeile 1:
 
=== Upload examples ===
 
=== Upload examples ===
  
[CODE]
+
 
{
+
 
  "type": "FeatureCollection",
 
  "features": [
 
    {
 
      "type": "Feature",
 
      "properties": {
 
    "geom_type": "point",
 
"srid": "4326",
 
        "userid": "Id falls vorhanden",
 
        "title": "Baustelle mit Titel",
 
        "description": "Beschreibung der Baustelle",
 
        "trob_start": "02.03.2014 00:00:00",
 
        "trob_end": "10.08.2014 00:00:00",
 
        "direction": "both",
 
        "country": "CH",
 
        "reason": "other",
 
        "object_name": "StrassenName",
 
        "object_type": "street",
 
        "trob_type": "snow"
 
      },
 
      "geometry": {
 
        "type": "Point",
 
        "coordinates": [
 
          7.499745,
 
          46.894146
 
        ]
 
      }
 
    },
 
 
{
 
{
  "type": "Feature",
+
  "type": "FeatureCollection",
  "properties": {
+
  "features": [
"geom_type": "line",
+
{
"srid": "4326",
+
  "type": "Feature",
"userid": "Id falls vorhanden",
+
  "properties": {
"title": "Baustelle mit Titel",
+
"geom_type": "point",
"description": "Beschreibung der Baustelle",
+
"srid": "4326",
"trob_start": "02.03.2014 00:00:00",
+
"userid": "Id falls vorhanden",
"trob_end": "10.08.2014 00:00:00",
+
"title": "Baustelle mit Titel",
        "direction": "both",
+
"description": "Beschreibung der Baustelle",
        "country": "CH",
+
"trob_start": "02.03.2014 00:00:00",
        "reason": "other",
+
"trob_end": "10.08.2014 00:00:00",
        "object_name": "StrassenName",
+
"direction": "both",
        "object_type": "street",
+
"country": "CH",
        "trob_type": "snow"
+
"reason": "other",
  },
+
"object_name": "StrassenName",
  "geometry": {
+
"object_type": "street",
"type": "LineString",
+
"trob_type": "snow"
"coordinates": [
+
  },
  [
+
  "geometry": {
9.089196,
+
"type": "Point",
47.459519
+
"coordinates": [
  ],
+
  7.499745,
  [
+
  46.894146
9.089595,
+
]
47.459551
+
  }
  ],
+
},
  [
+
{
9.090497,
+
  "type": "Feature",
47.459699
+
  "properties": {
  ],
+
"geom_type": "line",
  [
+
"srid": "4326",
9.091234,
+
"userid": "Id falls vorhanden",
47.459805
+
"title": "Baustelle mit Titel",
  ],
+
"description": "Beschreibung der Baustelle",
  [
+
"trob_start": "02.03.2014 00:00:00",
9.092256,
+
"trob_end": "10.08.2014 00:00:00",
47.459843
+
"direction": "both",
  ],
+
"country": "CH",
  [
+
"reason": "other",
9.092337,
+
"object_name": "StrassenName",
47.459863
+
"object_type": "street",
  ],
+
"trob_type": "snow"
  [
+
  },
9.092452,
+
  "geometry": {
47.45989
+
"type": "LineString",
  ],
+
"coordinates": [
  [
+
  [
9.09265,
+
9.089196,
47.460003
+
47.459519
  ],
+
  ],
  [
+
  [
9.09411,
+
9.089595,
47.460247
+
47.459551
  ],
+
  ],
  [
+
  [
9.09428,
+
9.090497,
47.460256
+
47.459699
  ],
+
  ],
  [
+
  [
9.095238,
+
9.091234,
47.460507
+
47.459805
  ],
+
  ],
  [
 
9.097622,
 
47.460919
 
  ],
 
  [
 
9.098073,
 
47.461046
 
  ]
 
]
 
  }
 
},
 
{
 
  "type": "Feature",
 
  "properties": {
 
"geom_type": "polygon",
 
"srid": "4326",
 
"userid": "Id falls vorhanden",
 
"title": "Baustelle mit Titel",
 
"description": "Beschreibung der Baustelle",
 
"trob_start": "02.03.2014 00:00:00",
 
"trob_end": "10.08.2014 00:00:00",
 
        "direction": "both",
 
        "country": "CH",
 
        "reason": "other",
 
        "object_name": "StrassenName",
 
        "object_type": "street",
 
        "trob_type": "snow"
 
  },
 
  "geometry": {
 
"type": "MultiPolygon",
 
"coordinates": [
 
  [
 
[
 
 
  [
 
  [
8.855176,
+
9.092256,
47.335813
+
47.459843
 
  ],
 
  ],
 
  [
 
  [
8.856409,
+
9.092337,
47.336355
+
47.459863
 
  ],
 
  ],
 
  [
 
  [
8.856582,
+
9.092452,
47.336153
+
47.45989
 
  ],
 
  ],
 
  [
 
  [
8.856706,
+
9.09265,
47.33608
+
47.460003
 
  ],
 
  ],
 
  [
 
  [
8.856562,
+
9.09411,
47.33581
+
47.460247
 
  ],
 
  ],
 
  [
 
  [
8.856341,
+
9.09428,
47.33617
+
47.460256
 
  ],
 
  ],
 
  [
 
  [
8.855788,
+
9.095238,
47.335934
+
47.460507
 
  ],
 
  ],
 
  [
 
  [
8.85531,
+
9.097622,
47.335719
+
47.460919
 
  ],
 
  ],
 
  [
 
  [
8.855176,
+
9.098073,
47.335813
+
47.461046
 +
  ]
 +
]
 +
  }
 +
},
 +
{
 +
  "type": "Feature",
 +
  "properties": {
 +
"geom_type": "polygon",
 +
"srid": "4326",
 +
"userid": "Id falls vorhanden",
 +
"title": "Baustelle mit Titel",
 +
"description": "Beschreibung der Baustelle",
 +
"trob_start": "02.03.2014 00:00:00",
 +
"trob_end": "10.08.2014 00:00:00",
 +
"direction": "both",
 +
"country": "CH",
 +
"reason": "other",
 +
"object_name": "StrassenName",
 +
"object_type": "street",
 +
"trob_type": "snow"
 +
  },
 +
  "geometry": {
 +
"type": "MultiPolygon",
 +
"coordinates": [
 +
  [
 +
[
 +
  [
 +
8.855176,
 +
47.335813
 +
  ],
 +
  [
 +
8.856409,
 +
47.336355
 +
  ],
 +
  [
 +
8.856582,
 +
47.336153
 +
  ],
 +
  [
 +
8.856706,
 +
47.33608
 +
  ],
 +
  [
 +
8.856562,
 +
47.33581
 +
  ],
 +
  [
 +
8.856341,
 +
47.33617
 +
  ],
 +
  [
 +
8.855788,
 +
47.335934
 +
  ],
 +
  [
 +
8.85531,
 +
47.335719
 +
  ],
 +
  [
 +
8.855176,
 +
47.335813
 +
  ]
 +
]
 
  ]
 
  ]
 
]
 
]
  ]
+
  }
]
+
}
  }
+
  ]
 
}
 
}
  ]
 
}
 
[/CODE]
 

Version vom 10. Juni 2014, 14:19 Uhr

Upload examples

{ "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "geom_type": "point", "srid": "4326", "userid": "Id falls vorhanden", "title": "Baustelle mit Titel", "description": "Beschreibung der Baustelle", "trob_start": "02.03.2014 00:00:00", "trob_end": "10.08.2014 00:00:00", "direction": "both", "country": "CH", "reason": "other", "object_name": "StrassenName", "object_type": "street", "trob_type": "snow" }, "geometry": { "type": "Point", "coordinates": [ 7.499745, 46.894146 ] } }, { "type": "Feature", "properties": { "geom_type": "line", "srid": "4326", "userid": "Id falls vorhanden", "title": "Baustelle mit Titel", "description": "Beschreibung der Baustelle", "trob_start": "02.03.2014 00:00:00", "trob_end": "10.08.2014 00:00:00", "direction": "both", "country": "CH", "reason": "other", "object_name": "StrassenName", "object_type": "street", "trob_type": "snow" }, "geometry": { "type": "LineString", "coordinates": [ [ 9.089196, 47.459519 ], [ 9.089595, 47.459551 ], [ 9.090497, 47.459699 ], [ 9.091234, 47.459805 ], [ 9.092256, 47.459843 ], [ 9.092337, 47.459863 ], [ 9.092452, 47.45989 ], [ 9.09265, 47.460003 ], [ 9.09411, 47.460247 ], [ 9.09428, 47.460256 ], [ 9.095238, 47.460507 ], [ 9.097622, 47.460919 ], [ 9.098073, 47.461046 ] ] } }, { "type": "Feature", "properties": { "geom_type": "polygon", "srid": "4326", "userid": "Id falls vorhanden", "title": "Baustelle mit Titel", "description": "Beschreibung der Baustelle", "trob_start": "02.03.2014 00:00:00", "trob_end": "10.08.2014 00:00:00", "direction": "both", "country": "CH", "reason": "other", "object_name": "StrassenName", "object_type": "street", "trob_type": "snow" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 8.855176, 47.335813 ], [ 8.856409, 47.336355 ], [ 8.856582, 47.336153 ], [ 8.856706, 47.33608 ], [ 8.856562, 47.33581 ], [ 8.856341, 47.33617 ], [ 8.855788, 47.335934 ], [ 8.85531, 47.335719 ], [ 8.855176, 47.335813 ] ] ] ] } } ] }