Vous êtes sur la page 1sur 20

ExploringOptionsforMap

Exploring
Options for Map
Caching
TileCacheCreation&Management
PresentedBy:
y
ToddWascher,BusinessDevelopmentManager
04.21.2011

We Visualize Your World

Whachutalkinbout?
Whatwellcoverwiththissession:
AnOverview
A O
i
CachingExplained(briefly)
GeneralBenefitsofMapCaching
General Benefits of Map Caching
SomeCachingTermsandConcepts
AComparisonofAvailableTools
A Comparison of Available Tools
Mapproxy,Tilecache,GeoWebCache,ArcGISServer
Functionality&CapabilitiesofEach
y
p
Summary&Conclusion
ChoosingtheRightToolfortheJob

ConsumingandUtilizingCachedMapservices

CachingOverview
Well,whatismapcaching?
What types of things can I cache?
WhattypesofthingscanIcache?
GotanyExamples?
http://mt0.google.com/vt/lyrs=t@126,r@145&hl=en&x=2018&y=2949&z=13&s=Gal
http://ecn.t2.tiles.virtualearth.net/tiles/r0213331100212?g=637&mkt=en-us&lbl=l1&stl=h&shading=hill&n=z
http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/13/2949/2018

CachingOverview
What are some benefits of having a cached mapservice?
Whataresomebenefitsofhavingacachedmapservice?
LightenBrowserload
LightenServerload
h
l d
Requestsforsmallimagesratherthandynamicdatarendering
Potentialtoimproveperformance

CachingTerms&Concepts
Seeding
Metatiling
Tiling
TilingSchemes
Schemes
ImageTypes
Transparency
Projections/Reprojection

CachingTerms&Concepts
Seeding

Seedingisbasicallypre
Seeding
is basically prerendering
renderingordynamicallycreatingmaptilesbased
or dynamically creating map tiles based
uponadefinedextentorageometry.

Seedingactionscanbescripted,generatedonthefly(userrequests)or
manuallycreated.

CachingTerms&Concepts
Metatiling
Ametatileconsistsofseveraltilescombinedintoonelargertile.

Pros:
Avoidduplicatingthelabelingoffeaturesthatspan
more than one tile
morethanonetile
UsuallyquickerfortheWMSbackendtogenerate
onelargeimageratherthanmanysmallones
Cons:
Sincethemetatileislarger,itisslowertorender
thananyindividualtile
Memoryconsumption

CachingTerms&Concepts
Tiling Schemes
TilingSchemes

Tilingschemesallowfordefinitionofscalelevels,tilesizeandsometimes
Tiling
schemes allow for definition of scale levels, tile size and sometimes
coordinatesystem.
SettingtilingschemesforArcGISServervarygreaterthantheother
options we will review
optionswewillreview.

CachingTerms&Concepts
Image Types
ImageTypes
Cachedmaptilescanbecreated/requestedindifferentimageformats.
Mostcommonly.pngfortransparencyand.jpegforimagery.
Transparency
Transparencyisusedforoverlayingtilesontopofothertilesandfor
sliding/transitioning effects Supported with png
sliding/transitioningeffects.Supportedwith.png.
AlsoparameterinWMSrequest.
Projections / Reprojection
Projections/Reprojection
Mostcachesarecreatedinadefinedprojection,butsomeutilitiescan
reprojecttiles(mapproxy).

How?
Consuming WMS and chopping it up into tiles
ConsumingWMSandchoppingitupintotiles
Storedinaccessibledirectorytobereturnedtoclient
Application requests handled by cache utility
Applicationrequestshandledbycacheutility
Projection
Location
Tilesize
Imageformat

ComparisonofCachingUtilities

MapProxy
MapProxyisanopensourceproxyforgeospatialdata.Itcaches,acceleratesand
transforms data from existing map services and serves any desktop or web GIS
transformsdatafromexistingmapservicesandservesanydesktoporwebGIS
client.
MapProxyworkslikeasimpletilecache,butalsooffersmanynewandinnovative
featureslikefullsupportforWMSclients.
MapProxyisanopensourcetechnologyusedtocreateandserveupmapcaches.It
is a middleman
isamiddle
manbetweenexistingwebmapservers(likeMapServerorGeoServer)
between existing web map servers (like MapServer or GeoServer)
andwebmapclientssuchasOpenLayersandGoogleEarth.

TileCache
TileCacheisanimplementationofaWMSCcompliantservermadeavailableunder
theBSD(Berkeley Software Distribution) licensebyMetaCarta.
TileCacheprovidesaPythonbasedWMSC/TMSserver,withpluggablecaching
mechanisms and rendering backends In the simplest use case TileCache requires
mechanismsandrenderingbackends.Inthesimplestusecase,TileCacherequires
onlywriteaccesstoadisk,theabilitytorunPythonCGIscripts,andaWMSyou
wanttobecached.Withtheseresources,youcancreateyourownlocaldiskbased
cacheofanyWMSserver,andusetheresultinanyWMSCsupportingclient,like
OpenLayers,oranyTMSsupportingclient,likeOpenLayersandworldKit.

GeoWebCache
GeoWebCache is a Java web application used to cache map tiles
coming from a variety of sources such as OGC Web Map Service (WMS).
(WMS)
It implements various service interfaces (such as WMS-C, WMTS, TMS,
Google Maps KML, Virtual Earth) in order to accelerate and optimize
map image delivery. It can also recombine tiles to work with regular WMS
clients.
http://geowebcache.org/

AMatrix

So,ArcGISServeralreadyhasCachingTools
Singlemapservicefocus
GUI/Geoprocessingoptions
TailoredforesriAPIs
l df
CompactCache

ChoosetheRightToolfortheJob
Allcachingutilitiesarebasicallyreadingamapservice,takingasnapshotofitand
All
caching utilities are basically reading a mapservice taking a snapshot of it and
cuttingitupintotilesdefinedbytheuser/tool.Oncethetilesarecreated,theyare
storedinadirectorystructuresimilarto:
Cachedirectory
Nameofservice
Scalelevels
Row
Row
Column
Image
Thismaychangeslightlybasedonwhattoolisdoingthejob,buttypicallytilesare
Thi
h
li h l b d
h
li d i
h j b b
i ll il
slicedandstoredaroundthegridbasedsystemoflevel,row,column.

UtilizingCachedServices
Web Applications
ArcGIS Desktop
Geoportals/Opendata

Resources
Links!
http://mappro org/
http://mapproxy.org/
http://tilecache.org/
http://geowebcache.org/
http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help
/index html#/What is map caching/00930000006m000000/
/index.html#/What_is_map_caching/00930000006m000000/

Thanks!
Feelfreetoaskanyquestionsorshare
y
yourowntips.
p
17158744397
1888WeDoGIS
Todd.Wascher@adc4gis.com

Vous aimerez peut-être aussi