EU 2016 - JSON, XML, and GML Made Easy
-
Upload
inovacao-gis-tecnologia-da-informacao -
Category
Business
-
view
195 -
download
2
Transcript of EU 2016 - JSON, XML, and GML Made Easy
![Page 1: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/1.jpg)
JSON, XML, and GML
Made Easy
![Page 2: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/2.jpg)
Agenda
● JSON, XML, & GML
overview
● Easy XML
– Tree navigation
● Automatic JSON – Auto schema scan
● Schemaless GML – Reading GML / WFS
without a schema
![Page 3: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/3.jpg)
Why JSON, XML, & GML?
• Commonly used in exchange formats,
open standards, web services
• Language of the web and REST APIs
• Supports loose integration across diverse
applications
• Critical for cross-platform and mobile
applications
![Page 4: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/4.jpg)
JSON, XML, and GML in FME
• Read and write 40+
XML, GML, and JSON
based formats.
• Extract, format,
template, map,
update, and many
other transformations.
![Page 5: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/5.jpg)
Working with JSON, XML, and GML
is easier than ever in FME 2016.
![Page 6: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/6.jpg)
Challenge:
Reading XML
Use XML, they said.
It will be fun, they said.
![Page 7: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/7.jpg)
New in FME 2016: Tree Navigation
![Page 8: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/8.jpg)
XML Reading
with Tree
Navigation
1. Add an XML Reader.
• Set Feature Paths
mode.
• Browse to source
XML data.
2. Select the node you
want to become a
feature type.
![Page 9: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/9.jpg)
XML Reading with Tree Navigation
![Page 10: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/10.jpg)
XML Reading with Tree Navigation
![Page 11: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/11.jpg)
XML Reading with Tree Navigation
![Page 12: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/12.jpg)
XML Reading with Tree Navigation
![Page 13: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/13.jpg)
Demo: Read XML and convert
to spatial geometries
![Page 14: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/14.jpg)
Challenge:
Reading JSON
JSON jargon
has you
jumbled?
![Page 15: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/15.jpg)
JSON Reading
with
Schema Scan
Automatically parse
common forms of JSON
into FME attributes.
![Page 16: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/16.jpg)
JSON Reading with Schema Scan
• No need to write JSON
Query
• Flattens JSON into features
• Geometry: GeoJSON or
OGCWKT formats
• JSON Query still available
when needed
![Page 17: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/17.jpg)
FME 2016 reads both objects and arrays
![Page 18: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/18.jpg)
Demo: Look how easy
it is to read JSON!
![Page 19: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/19.jpg)
GML / WFS Reading
Challenge:
GML is hard to read
without a schema.
Solution:
Ignore schema mode lets
you read almost any GML.
* Schema is still required to validate or write GML.
![Page 20: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/20.jpg)
GML / WFS Reading: Ignore Schema
FME 2016 smoothly skips parser errors
![Page 21: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/21.jpg)
FME can even read new GML formats like GeoSciML (data from British Geological Survey)
GML / WFS Reading: Ignore Schema
![Page 22: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/22.jpg)
Demo: Read WFS
with no schema
![Page 23: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/23.jpg)
• Easier to extract value from XML, GML, and JSON.
• Tree navigation makes it easier to pick XML elements
and build workflows.
• Auto Schema Scan Mode means you can read JSON
without configuring anything.
• You don’t need a schema to read GML / WFS data if
you use Ignore Schema mode.
![Page 24: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/24.jpg)
Resources • safe.com/webinar
• Ways to Make XML Easy
• Manipulating GML Files
• Common JSON Problems
• blog.safe.com
knowledge.safe.com
![Page 25: EU 2016 - JSON, XML, and GML Made Easy](https://reader031.fdocuments.net/reader031/viewer/2022021919/587560501a28ab00528b709f/html5/thumbnails/25.jpg)
Thank you!
Questions?