excellence center for fme - json, xml, and gml …...new in fme 2016: tree navigation xml reading...

26
JSON, XML, and GML Made Easy 1

Upload: others

Post on 14-Jul-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

JSON, XML, and GML

Made Easy

1

Page 2: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

Bild 1

1 To do - [email protected] missing materials from here on.Tiana Warner;

Page 3: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

Agenda

● JSON, XML, & GML

overview

● Easy XML

– Tree navigation

● Automatic JSON– Auto schema scan

● Schemaless GML– Reading GML / WFS

without a schema

Page 4: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

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 5: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

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 6: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

Working with JSON, XML, and GML

is easier than ever in FME 2016.

Page 7: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

Challenge:

Reading XML

Use XML, they said.

It will be fun, they said.

Page 8: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

New in FME 2016: Tree Navigation

Page 9: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

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 10: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

XML Reading with Tree Navigation

Page 11: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

XML Reading with Tree Navigation

Page 12: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

XML Reading with Tree Navigation

Page 13: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

XML Reading with Tree Navigation

Page 14: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

Demo: Read XML and convert

to spatial geometries

Page 15: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

Challenge:

Reading JSON

JSON jargon

has you

jumbled?

Page 16: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

JSON Reading

with

Schema Scan

Automatically parse

common forms of JSON

into FME attributes.

Page 17: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

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 18: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

FME 2016 reads both objects and arrays

Page 19: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

Demo: Look how easy

it is to read JSON!

Page 20: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

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 21: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

GML / WFS Reading: Ignore Schema

FME 2016 smoothly skips parser errors

Page 22: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

FME can even read new GML formats like GeoSciML (data from British Geological Survey)

GML / WFS Reading: Ignore Schema

Page 23: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

Demo: Read WFS

with no schema

Page 24: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

• 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 25: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

Resources• safe.com/webinar

• Ways to Make XML Easy

• Manipulating GML Files

• Common JSON Problems

• blog.safe.com

knowledge.safe.com

Page 26: Excellence Center for FME - JSON, XML, and GML …...New in FME 2016: Tree Navigation XML Reading with Tree Navigation 1. Add an XML Reader. • Set Feature Paths mode. • Browse

Thank you!

Questions?