26
JSON, XML, and GML Made Easy 1

JSON, XML, and GML Made Easy - Excellence Center for FME

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: JSON, XML, and GML Made Easy - Excellence Center for FME

JSON, XML, and GML

Made Easy

1

Page 2: JSON, XML, and GML Made Easy - Excellence Center for FME

Bild 1

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

Page 3: JSON, XML, and GML Made Easy - Excellence Center for FME

Agenda

● JSON, XML, & GML

overview

● Easy XML

– Tree navigation

● Automatic JSON– Auto schema scan

● Schemaless GML– Reading GML / WFS

without a schema

Page 4: JSON, XML, and GML Made Easy - Excellence Center for FME

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: JSON, XML, and GML Made Easy - Excellence Center for FME

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: JSON, XML, and GML Made Easy - Excellence Center for FME

Working with JSON, XML, and GML

is easier than ever in FME 2016.

Page 7: JSON, XML, and GML Made Easy - Excellence Center for FME

Challenge:

Reading XML

Use XML, they said.

It will be fun, they said.

Page 8: JSON, XML, and GML Made Easy - Excellence Center for FME

New in FME 2016: Tree Navigation

Page 9: JSON, XML, and GML Made Easy - Excellence Center for FME

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: JSON, XML, and GML Made Easy - Excellence Center for FME

XML Reading with Tree Navigation

Page 11: JSON, XML, and GML Made Easy - Excellence Center for FME

XML Reading with Tree Navigation

Page 12: JSON, XML, and GML Made Easy - Excellence Center for FME

XML Reading with Tree Navigation

Page 13: JSON, XML, and GML Made Easy - Excellence Center for FME

XML Reading with Tree Navigation

Page 14: JSON, XML, and GML Made Easy - Excellence Center for FME

Demo: Read XML and convert

to spatial geometries

Page 15: JSON, XML, and GML Made Easy - Excellence Center for FME

Challenge:

Reading JSON

JSON jargon

has you

jumbled?

Page 16: JSON, XML, and GML Made Easy - Excellence Center for FME

JSON Reading

with

Schema Scan

Automatically parse

common forms of JSON

into FME attributes.

Page 17: JSON, XML, and GML Made Easy - Excellence Center for FME

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: JSON, XML, and GML Made Easy - Excellence Center for FME

FME 2016 reads both objects and arrays

Page 19: JSON, XML, and GML Made Easy - Excellence Center for FME

Demo: Look how easy

it is to read JSON!

Page 20: JSON, XML, and GML Made Easy - Excellence Center for FME

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: JSON, XML, and GML Made Easy - Excellence Center for FME

GML / WFS Reading: Ignore Schema

FME 2016 smoothly skips parser errors

Page 22: JSON, XML, and GML Made Easy - Excellence Center for FME

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

GML / WFS Reading: Ignore Schema

Page 23: JSON, XML, and GML Made Easy - Excellence Center for FME

Demo: Read WFS

with no schema

Page 24: JSON, XML, and GML Made Easy - Excellence Center for FME

• 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: JSON, XML, and GML Made Easy - Excellence Center for FME

Resources• safe.com/webinar

• Ways to Make XML Easy

• Manipulating GML Files

• Common JSON Problems

• blog.safe.com

knowledge.safe.com

Page 26: JSON, XML, and GML Made Easy - Excellence Center for FME

Thank you!

Questions?