Post on 18-Mar-2018
FME and ArcGIS OnlineGive it a REST Already!
Scott McQuarrie
FLIGHT PLAN
● Disclaimer
● The Problem
● The Solution
● Q&(Maybe)A
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!
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!
THE PROBLEM(S)
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
THE SOLUTION(S)
1 – Update Feature Services
• Use the ESRI ArcGIS Online (AGOL) Feature Service
Writer! Simple and Easy
• Publish to FME Server
LESSONS LEARNED:
- Create feature service in
AGOL first!
- Fast enough to just truncate
and load every time
2 – Update Stand-Alone Items
• Use the httpCaller
• Publish to FME Server
Your 3 Best Friends
LESSONS LEARNED:
- HTTP Method
- Query String Parameters:
need f & Token
- Headers: let me know
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)
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
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
SHARE IT
CREATE IT
SOMEONE WILL
MAKE IT BETTER
SHARE IT
THANK YOU!
Scott McQuarrie
smcquarrie@tol.ca