fme and arcgis online open data - give it a rest already!

22
FME and ArcGIS Online Give it a REST Already! Scott McQuarrie

Upload: safe-software

Post on 18-Mar-2018

27 views

Category:

Software


1 download

TRANSCRIPT

Page 1: FME and ArcGIS Online Open Data - Give it a REST Already!

FME and ArcGIS OnlineGive it a REST Already!

Scott McQuarrie

Page 2: FME and ArcGIS Online Open Data - Give it a REST Already!

FLIGHT PLAN

● Disclaimer

● The Problem

● The Solution

● Q&(Maybe)A

Page 3: FME and ArcGIS Online Open Data - Give it a REST Already!

DISCLAIMER

When it comes to FME…I, Scott McQuarrie, am not a guru, expert, especially

skilled individual or any other term that describes anything more than a barely

adequately equipped individual. The information portrayed in this presentation is

pretty much what I learned while cobbling together a solution that works and,

except by pure chance or coincidence, follows no best practices or most efficient

means. I cannot condone its use by any other organization and can barely

condone it’s use by my own.

Consider yourselves warned!

Page 4: FME and ArcGIS Online Open Data - Give it a REST Already!

DISCLAIMER…cont’d

When it comes to the ArcGIS Online REST API…I, Scott McQuarrie, am not a

guru, expert, especially skilled individual or any other term that describes anything

more than a barely adequately equipped individual. The information portrayed in

this presentation is pretty much what I learned while cobbling together a solution

that works and, except by pure chance or coincidence, follows no best practices

or most efficient means. I cannot condone its use by any other organization and

can barely condone it’s use by my own.

Consider yourselves warned…again!

Page 5: FME and ArcGIS Online Open Data - Give it a REST Already!

THE PROBLEM(S)

Page 6: FME and ArcGIS Online Open Data - Give it a REST Already!

1

Update

Feature Services

GIS Data

Update Stand-Alone

Items

Zipped CAD Files

New Open Data Site

ArcGIS Online

2

Load Large Number

of Items

Zipped Aerial Photos

3

Page 7: FME and ArcGIS Online Open Data - Give it a REST Already!

THE SOLUTION(S)

Page 8: FME and ArcGIS Online Open Data - Give it a REST Already!

1 – Update Feature Services

• Use the ESRI ArcGIS Online (AGOL) Feature Service

Writer! Simple and Easy

• Publish to FME Server

Page 9: FME and ArcGIS Online Open Data - Give it a REST Already!
Page 10: FME and ArcGIS Online Open Data - Give it a REST Already!

LESSONS LEARNED:

- Create feature service in

AGOL first!

- Fast enough to just truncate

and load every time

Page 11: FME and ArcGIS Online Open Data - Give it a REST Already!

2 – Update Stand-Alone Items

• Use the httpCaller

• Publish to FME Server

Page 12: FME and ArcGIS Online Open Data - Give it a REST Already!
Page 13: FME and ArcGIS Online Open Data - Give it a REST Already!

Your 3 Best Friends

Page 14: FME and ArcGIS Online Open Data - Give it a REST Already!
Page 15: FME and ArcGIS Online Open Data - Give it a REST Already!

LESSONS LEARNED:

- HTTP Method

- Query String Parameters:

need f & Token

- Headers: let me know

Page 16: FME and ArcGIS Online Open Data - Give it a REST Already!

3 – Load Large Number of Items

• Use the httpCaller

• Keep track of returned unique URL’s for later use

• Loaded ~4200 zipped tiff images (180 Gb)

Page 17: FME and ArcGIS Online Open Data - Give it a REST Already!
Page 18: FME and ArcGIS Online Open Data - Give it a REST Already!
Page 19: FME and ArcGIS Online Open Data - Give it a REST Already!

LESSONS LEARNED:

- Multipart / Form Data req’d

- Query String Parameters: f,

token, type (Image, etc.), title

req’d

- QSP: optionally add

description, tags, licenseinfo,

access

Page 20: FME and ArcGIS Online Open Data - Give it a REST Already!

REST Easy…1. If I can do it…so can you!

2. OR…Be patient…FME will likely

come out with writers to make this

easier

3. This can be applied to other REST

API’s

Page 21: FME and ArcGIS Online Open Data - Give it a REST Already!

SHARE IT

CREATE IT

SOMEONE WILL

MAKE IT BETTER

SHARE IT

Page 22: FME and ArcGIS Online Open Data - Give it a REST Already!

THANK YOU!

Scott McQuarrie

[email protected]