introduction to the restful, schemaless, json first ... · introduction to the restful, schemaless,...
TRANSCRIPT
![Page 1: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/1.jpg)
Introduction to the RESTful, schemaless,
JSON first download service in GeoServer
Ing. Andrea AimeEng. Nuno Oliveira
GeoSolutions
![Page 2: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/2.jpg)
GeoSolutions
⚫ Founded in 2006, offices in Italy & US
⚫ Expertise
• Image Processing, GeoSpatial Data Fusion
• Java, Java Enterprise, C++, Python
• JPEG2000, JPIP, Advanced 2D visualization
⚫ Supporting/Developing FOSS4G projects⚫ GeoServer, MapStore
⚫ GeoNetwork, GeoNode, Ckan
⚫ Clients
⚫ Public Agencies
⚫ Private Companies
⚫ http://www.geo-solutions.it
![Page 3: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/3.jpg)
OGC API - Common
![Page 4: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/4.jpg)
OGC API - Common
https://github.com/opengeospatial/oapi_common
![Page 5: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/5.jpg)
Links, links everywhere!
/collections
/collections/{collectionId}
Backlinks to self and alternative
representations
(different formats/encodings)
Links to each collection in each of its formats
{
"href":"http://data.example.org/collections.json",
"rel":"self",
"type":"application/json",
"title":"this document"
}
![Page 6: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/6.jpg)
Very little is mandatory
{
"conformsTo": [
"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/core",
"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30",
"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/html",
"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson"
]
}
![Page 7: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/7.jpg)
OGC API – Features (Core)
![Page 8: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/8.jpg)
OGC API – Features (Core)
![Page 9: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/9.jpg)
![Page 10: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/10.jpg)
![Page 11: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/11.jpg)
![Page 12: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/12.jpg)
…/collections/buildings/items?
bbox=41,54,42,55
&datetime=2018-02-12T23%3A20%3A52Z
&buildingState=good
![Page 13: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/13.jpg)
[
{
"href":"http://example.org/collections/buildings/items.json?limit:50",
"rel":"prev",
"type":"application/geo+json"
},
{
"href":"http://example.org/collections/buildings/items.json?limit:50&offset:50",
"rel":"self",
"type":"application/geo+json"
},
{
"href":"http://example.org/collections/buildings/items.json?limit:50&offset:100",
"rel":"next",
"type":"application/geo+json"
}
]
![Page 14: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/14.jpg)
And that’s all OGC API – Features Core offers!
![Page 16: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/16.jpg)
BRGM boreholes use case
![Page 17: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/17.jpg)
• Demo with almost 1 million boreholes:
• Available through:
• WFS 2.0.0
• WFS 3.0.0
• OGC API – Features
• Simple Features (SF-0) and Complex Features (SF-1)!
![Page 18: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/18.jpg)
![Page 19: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/19.jpg)
![Page 20: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/20.jpg)
![Page 21: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/21.jpg)
![Page 22: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/22.jpg)
![Page 23: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/23.jpg)
What to do with the existing mapped and published data sets?
![Page 24: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/24.jpg)
![Page 25: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/25.jpg)
![Page 26: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/26.jpg)
• One mapping between the data and a target schema • multiples output formats!
• How to get rid of the mapping between the data and target schema?
![Page 27: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/27.jpg)
• Why not use templating instead of mappings?
• What You See Is What You Get!
![Page 28: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/28.jpg)
• Filtering using CQL is supported:
• http://.../geoserver/ogc/features/collections/eposb:Borehole/items?f=application/ld+json&limit=50&filter=features.gsmlp:boreholeLength_m.om:amount>83&filter-lang=cql-text
![Page 29: Introduction to the RESTful, schemaless, JSON first ... · Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions](https://reader034.vdocuments.us/reader034/viewer/2022042612/5f6dad5b7a191b47a258e726/html5/thumbnails/29.jpg)