Top Banner
Introduction to the RESTful, schemaless, JSON first download service in GeoServer Ing. Andrea Aime Eng. Nuno Oliveira GeoSolutions
30

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

Jul 24, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
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

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

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

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

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

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

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

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

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
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
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
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

…/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

[

{

"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

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

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

• 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
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
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
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
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
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

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
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
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

• 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

• 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

• 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
Page 30: 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

That’s all folks!

[email protected]