ogc in arc_gis_g_tstyle

37
Consumeren van OGC services met ArcGIS Desktop Gert-Jan van der Weijden Gemeente Den Haag

Upload: gert-jan

Post on 16-Jul-2015

144 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Ogc in arc_gis_g_tstyle

Consumeren van OGC services

met ArcGIS DesktopGert-Jan van der Weijden

Gemeente Den Haag

Page 2: Ogc in arc_gis_g_tstyle

Mijn achtergrond

Van Rijksleeuw naar Haagse ooievaar:

Van ruimtelijke beleid (terug) naar geo-ict techniek

Page 3: Ogc in arc_gis_g_tstyle

Aanleiding

Webservices waren “dingen” die nodig waren voor een

GIS-viewer

NU: beschikbaar komen van productierijpe webservices

RO Online

CBS Webservices

PDOK (publieke dienstverlening op de kaart)

En bij jullie?

Page 4: Ogc in arc_gis_g_tstyle

PDOK in 2 minuten

Publieke Dienstverlening Op de

Kaart

Samenwerkingsverband van 6

partners:

VROM, RWS, LNV, TNO, Kadaster

, GeoNovum

Project Vernieuwing Rijksdiensten

Doel: opzetten van gezamenlijk

geowebservicecentrum

Voor eigen gebruik van data en

infra door de PDOK-partners

Te verbreden naar andere

afnemers

Voor gebruik van data door derden:

o.a .Inspire verplichtingen

Page 5: Ogc in arc_gis_g_tstyle

PDOK (2e minuut)

Motor bestaat uit een serie

webservices

Deels WMS

Deels WFS

Deels TMS (tiled services)

Met het Nationaal Georegister

(NGR) als toegangspunt

Page 6: Ogc in arc_gis_g_tstyle

PDOK (3)

Bestaat uit veel meer dan techniek:

Afspraken: SLA’s

Business case: wat levert het me op

Maar daar gaat het vandaag even niet over

Page 7: Ogc in arc_gis_g_tstyle

Geschiedenis (1)

OGC Interoperability Add-On

iemand hier mee gewerkt?

voor ArcGIS 8.3

januari 2004 (7 jaar terug)

voor WMS én WFS (en

GML)

Page 8: Ogc in arc_gis_g_tstyle

Geschiedenis (2)

Een jaar later: ArcGIS 9.0

Native support voor WMS

Support voor WFS via betaalde Data Interop extensie

(=FME)

2006: ArcGIS 9.1

WFS gratis via Data Interop techniek

Geen extra licensie nodig

Page 9: Ogc in arc_gis_g_tstyle

Geschiedenis (3)

Op de GIS Tech 2006

Open GIS & Webservices

Page 10: Ogc in arc_gis_g_tstyle

WMS via andere wegen?

- FME for Esri

- = Data Interop Extensie, maar met meer dataformaten

- WMS echter matig gesupport

(o.a. géén GetFeatureInfo

- GDAL *)

- OpenSource Raster library

Fun fact: The pronunciation of GDAL is the subject of some disagreement. It seems obvious to me and Kirk that “GeeDAL” is

correct (like “Vi”, the editor or “Unix”, the OS). I was amused to hear that in French-speaking Montreal it’s sometimes “J’DAL.”

For reasons that are not clear to me some of the inner circle (Frank W and Hobu) usually pronounce it “GuuDAL.”

Page 11: Ogc in arc_gis_g_tstyle

WMS in ArcMap 9.3.1

Datasource is achteraf niet te wijzigen!

Lastig bij stap van O -> T -> A -> P

Nog lastiger bij nieuwe release van webservice

Page 12: Ogc in arc_gis_g_tstyle

WMS in ArcMap: metadata (1)

Page 13: Ogc in arc_gis_g_tstyle

WMS in Arcmap: metadata (2)

Page 14: Ogc in arc_gis_g_tstyle

WMS in ArcMap: metadata (3)

Metadata van een WMS layer is niet op te vragen

itt metadata van een lokale layer: fGDB, shapefile

Dus morgen weet ik niet meer wat de status van deze

data was

Oplossen met naamgeving:

Thema_datum_schaal_bronhouder

Maar we hebben die metadata toch niet voor niks

ingevuld?

Page 15: Ogc in arc_gis_g_tstyle

WMS in ArcMap

Labelling

Welke plaats & straatnamen laat je wel of niet zien?

En hoe plaats je ze slim: dynamisch/statisch:

voorbeeld CBS gemeenten (Rotterdam)

Page 16: Ogc in arc_gis_g_tstyle

WMS in ArcMap: identify

Identify op een WMS

highlight de feature

niet.

(i.t.t. een identify op

een lokale layer)

Page 17: Ogc in arc_gis_g_tstyle

WMS in ArcMap: printen

Op “best image quality”

Wordt er niets afgedrukt

Ook geen foutmelding!

Oorzaken:

Time out?

Max image size?

Een A0 op 600 dpi is

20.000 x 30.000 pixels

Page 18: Ogc in arc_gis_g_tstyle

WMS: Legenda’s

Optioneel volgens de OGC standaard.

WMS: vaak te lage resolutie

TMS: geen legenda

Page 19: Ogc in arc_gis_g_tstyle

WMS in ArcMap: Error handling

Die kan nog wat beter

Bij fout ingetypte URL vaak

cryptische meldingen

Page 20: Ogc in arc_gis_g_tstyle

WMS-C & WMTS in ArcMap

WMS-C = cached tiles

WMTS = Web map tiling services

In ArcGIS: Ná 10.1

Nu met 3rd party tools (ArcBruTile)

Maar hoe werkt ArcMap dan met ArcGIS Online Basemap?

Sowieso een beperking van TMS dat er geen traploze

zoom mogelijk is: de kaartschalen liggen vast

Standaard: 3K, 6K, 12K etc.

Page 21: Ogc in arc_gis_g_tstyle

WMS-C & WMTS in ArcMap

ArcBruTile

http://arcbrutile.codeplex.com

Page 22: Ogc in arc_gis_g_tstyle

WFS (1)

OGC zegt:The OGC Web Map Service allows a client to overlay map images for display served from multiple

Web Map Services on the Internet. In a similar fashion, the OGC Web Feature Service allows a

client to retrieve and update geospatial data encoded in Geography Markup Language (GML) from

multiple Web Feature Services.

Vaak gezien als live-service (GeoServer):One can think of WFS as the “source code” to the maps that one would ordinarily view (via WMS).

WFS leads to greater transparency and openness in mapping applications. Instead of merely being

able to look at a picture of the map, as the provider wants the user to see, the power is in the hands

of the user to determine how to visualize (style) the raw geographic and attribute data. The data can

also be downloaded, further analyzed, and combined with other data. The transactional capabilities

of WFS allow for collaborative mapping applications. In short, WFS is what enables open spatial

data.

Soms gezien als downloadservice

O.a. door Esri

Page 23: Ogc in arc_gis_g_tstyle

WFS (2)

WFS als downloadservice (client pull)

Voordelen tov traditionele (ftp) download?

Hoge updatefrequentie?

Kleine updates in een grote dataset?

Hoeveel inspanning kost een WFS t.o.v. een FTP server?

Of helemaal andersom: server push met WFS-T

Page 24: Ogc in arc_gis_g_tstyle

WFS in ArcMap

Algemene beperkingen WFS:

In grote lijnen: functionaliteit van shapefiles

Geen compleet overzicht van mogelijkheden shp/fgdb/wfs

Nieuwe ArcGIS fGDB mogelijkheden zijn niet toepasbaar

Cartographic representation

Topology rules

Implementatie in ArcMap maar met Interop/FME

Daardoor voor een gebruiker ondoorgrondelijk

Onhandig met beheer, oa proxy instellingen

Page 25: Ogc in arc_gis_g_tstyle

WFS in ArcMap 9.3.1

Magere implementatie

Geen bounding box of ander filter op te geven

Gehele layer naar binnen gehaald en geïndexeerd

in een temp file geodatabase opgeslagen

Page 26: Ogc in arc_gis_g_tstyle

WFS in Arcmap 10.0

Iets verbeterde implementatie:

Bounding box is instelbaar

Max # features

XML filter expression

Zelf de XML hard inkloppen!

Maar hoe ga je dit een

eindgebruiker uitleggen?

Terug naar de ArcInfo commandline

Page 27: Ogc in arc_gis_g_tstyle
Page 29: Ogc in arc_gis_g_tstyle

CSW

Met standaard search in 10 alleen ArcGIS Services

Dus met CSW Client for ArcGIS

Live demo

Instellingen voor CSW Client zijn complex

Maar in 10 wel eenvoudiger dan in 9.3

Zie www.esri.nl

Functionaliteit:

- Voldoende zoekmogelijkheden?

- Voldoende respons?

Page 30: Ogc in arc_gis_g_tstyle

Diverse issues

WFS to Feature class

9.3.x error

Workaround: quick export

10: solved!

https://www2.landgate.wa.gov.au/web/guest/arcgis

Page 31: Ogc in arc_gis_g_tstyle

Op de Esri forums (ArcGIS Resource Center)

Weinig vragen rond OGC

En weinig antwoorden op

de wel gestelde vragen

Relatief veel uit Nederland

Page 32: Ogc in arc_gis_g_tstyle

Debugging

Fiddler

Proximitron

Liever in ArcGIS zelf!

Page 33: Ogc in arc_gis_g_tstyle

Slim met SLD

CBS voorbeeld: 1 mapservice, meerdere styleshttp://geoservices.cbs.nl/ArcGIS/services/WijkenBuurten2010/MapServer/WMSSer

ver?request=GetMap&width=2000&height=2000&CRS=EPSG:28992&version=1.3.

0&format=png8&layers=0&bbox=0,300000,300000,700000&styles=default

http://geoservices.cbs.nl/ArcGIS/services/WijkenBuurten2010/MapServer/WMSSer

ver?request=GetMap&width=2000&height=2000&CRS=EPSG:28992&version=1.3.

0&format=png8&layers=0&bbox=0,300000,300000,700000&styles=aant_inw

Ook in Arcgis desktop bruikbaak

ArcGIS Server: SLD’s op een plek dan de mapservice:http://sampleserver1.arcgisonline.com/arcgis/services/specialty/esri_state

scitiesrivers_usa/mapserver/wmsserver?version=1.3.0&request=getmap&

crs=crs:84&bbox=-178.217598,18.924782,-

66.969271,71.406235&width=765&height=360&layers=0,0&styles=,overla

ps&exceptions=application/vnd.ogc.se_xml&format=image/png&bgcolor=

0xffffff&transparent=true&sld=http://geo.sohosted.com/sld/polygon_overla

ps.xml

Dat wil ik ook in ArcGIS Desktop

En dan ook met SLDs “on the fly”

Page 34: Ogc in arc_gis_g_tstyle

Overigens: Legal issues

Direct tile access is not allowed by Google (and this is

what ArcBruTile is doing). Usually this will get your IP

address banned for awhile but they could also come after

you for violating their TOS.

fwiw, Arc2Earth will be adding support for this functionality

in the next build. Instead of needing a Google Maps

Premium license, you can purchase access at the

individual user level (much, much cheaper). Yes, you'll

have to pay a yearly price for it but it will be the only legal

method for accessing Google data from ArcMap (more

info here: http://bit.ly/dhVjSY)

Page 35: Ogc in arc_gis_g_tstyle

Oplossing: Third party Tools

Al eerder: ArcBruTile

Tot versie 9.2: CarbonArc Project

Voor tiled services ook Arc2Earth

Maar het blijven

deeloplossingen!

Page 36: Ogc in arc_gis_g_tstyle

Oplossing: ArcGIS Server als proxy

Wel Legenda’s

Wel tiled services

Wel een beetje zwaar

En met ArcGIS server kun je de CBS-SLDs truc niet

uithalen!

Page 37: Ogc in arc_gis_g_tstyle

En hoe nu verder?

• Wachten op versie 10.1 (net voor of na kerst 2011)

• of op versie 11

• 3rd party tools verzamelen en installeren

• Of samen aan de slag?

• Met Esri NL, RWS, PDOK kijken wat de behoefte is.

• Rol voor de AGGN als bemiddelaar

• Maak je wensen en ideeën kenbaar in

de LinkedIn groep “ArcGIS in Nederland”

• Of via [email protected]