{
"_id": "Station-2942_001",
"_rev": "3-77f17a55f6ab11f7f6668e63a75f2281",
"name": "Station-2942",
"date": "2011-04-06",
"loc": [8.71, 49.412222],
"country": "Germany",
"temperature": 19,
"rainfall": 30
}
{
"_id": "Station-2942_001",
"_rev": "3-77f17a55f6ab11f7f6668e63a75f2281",
"name": "Station-2942",
"date": "2011-04-06",
"loc": [8.71, 49.412222],
"country": "Germany",
"temperature": 19,
"rainfall": 30,
"atmospheric_pressure": 1012
}
{
"_id":"0050bfa141ada373d64a8f2ca6099e36",
"_rev":"1-ef2fe839264d5fd8f12a2bcd07e592be",
"type":"Feature",
"properties":{
"GEODB_OID":1.0,
"SHAPE_AREA":25564.248949,
"SHAPE_LEN":767.237661
},
"geometry":{
"type":"Polygon",
"coordinates":[…]
}
}
function(doc) {
}
function(doc) {
if (doc.geometry) {
}
}
function(doc) {
if (doc.geometry) {
emit( , );
}
}
function(doc) {
if (doc.geometry) {
emit(/* Schlüssel */, /* Wert */);
}
}
function(doc) {
if (doc.geometry) {
emit(doc.geometry, /* Wert */);
}
}
function(doc) {
if (doc.geometry) {
emit(doc.geometry, doc.properties);
}
}
http://localhost:5984/parks_pdx/_design/geo/_spatial/geom?
bbox=-180,-90,180,90
http://localhost:5984/parks_pdx/_design/geo/_spatial/geom?
bbox=-180,-90,180,90
{"update_seq":319,"rows":[]}
{"update_seq":319,"rows":[{"id":"f6d120ecb21f269130106f2a1107a7ae","bbox":[-122.547363,45.554482,-122.546373,45.555301],"geometry":{"type":"Polygon","coordinates":[…]},"value":{"GEODB_OID":257,"OBJECTID":257,"NAME":"Senns Dairy Park",…}}]}
{"update_seq":319,"rows":[{"id":"f6d120ecb21f269130106f2a1107a7ae","bbox":[-122.547363,45.554482,-122.546373,45.555301],"geometry":{"type":"Polygon","coordinates":[…]},"value":{"GEODB_OID":257,"OBJECTID":257,"NAME":"Senns Dairy Park",…}},…]}
row“ angewendetfunction(head, req) {}
function(head, req) {var row;while (row = getRow()) {}}
function(head, req) {var row, out;while (row = getRow()) {out = '{"type": "Feature", "geometry": ' +JSON.stringify(row.geometry) +', "properties": ' + JSON.stringify(row.value) +'}';send(out);}}
function(head, req) {var row, out;while (row = getRow()) {out = '{"type": "Feature", "geometry": ' +JSON.stringify(row.geometry) +', "properties": ' + JSON.stringify(row.value) +'}';send(out);}}
function(head, req) {var row, out;while (row = getRow()) {out = '{"type": "Feature", "geometry": ' +JSON.stringify(row.geometry) +', "properties": ' + JSON.stringify(row.value) +'}';send(out);}}
function(head, req) {var row, out;while (row = getRow()) {out = '{"type": "Feature", "geometry": ' +JSON.stringify(row.geometry) +', "properties": ' + JSON.stringify(row.value) +'}';send(out);}}
function(head, req) {var row, out;send('{"type": "FeatureCollection", "features":[');while (row = getRow()) {out = '{"type": "Feature", "geometry": ' +JSON.stringify(row.geometry) +', "properties": ' + JSON.stringify(row.value) +'}';send(out);}send("]}");}
function(head, req) {var row, out, sep = '\n';send('{"type": "FeatureCollection", "features":[');while (row = getRow()) {out = '{"type": "Feature", "geometry": ' +JSON.stringify(row.geometry) +', "properties": ' + JSON.stringify(row.value) +'}';send(sep + out);sep = ',\n';}send("]}");};
http://localhost:5984/parks_pdx/_design/geo/
_spatial/_list/geojson/geom?bbox=-180,-90,180,90
http://localhost:5984/parks_pdx/_design/geo/
_spatial/_list/geojson/geom?bbox=-180,-90,180,90