Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services...
Transcript of Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services...
![Page 1: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/1.jpg)
Optimizing ArcGIS Server Map Services
![Page 2: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/2.jpg)
Agenda
• ArcGIS Server overview• Introduction to map services• Optimizing map content for dynamic services• Optimizing cached services• Resources and training
![Page 3: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/3.jpg)
ArcGIS Server
Making GIS Knowledge Available To Anyone . . . . . . Integrates With Other Systems Via Standards
Use
Serve
Author
BrowserDesktop 3D Viewers
ArcGIS Server
Mobile EnterpriseEnvironment
OpenAPIs
• Mapping• 3-D Visualization• Modeling & Analysis• Geo-Data Management
• Complete• Interoperable• Server-Based• GIS
![Page 4: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/4.jpg)
ArcGIS ServerServices + Applications
GlobeServices
MapServices
Analysis &ModelingServices
ImageServices
Open OGCServices
WebBrowsers
Desktop Explorer Mobile EnterpriseEnvironment
OpenAPIs
![Page 5: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/5.jpg)
Agenda
• ArcGIS Server overview• Introduction to map services• Optimizing map content for dynamic services• Optimizing cached services• Resources and training
![Page 6: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/6.jpg)
Map Services
![Page 7: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/7.jpg)
Dynamic vs. cached map services
• Dynamic services– Rendered by ArcGIS server on the fly– Examples
– Roads symbolized by snow depth– Electrical network showing the latest posted work order
• Cached services– Pre-rendered tiles– Examples: Landuse / landcover, road network, basemap data
Client
Cache GIS Server
Initial request to GIS server to discover cache
All subsequent requests via URL to Web server
Web ADF
![Page 8: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/8.jpg)
Agenda
• ArcGIS Server overview• Introduction to map service• Optimizing map content for dynamic services• Optimizing cached services• Resources and training
![Page 9: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/9.jpg)
Optimizing dynamic services
• Reduce the amount of data to be handled
![Page 10: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/10.jpg)
Optimizing dynamic services - continued
• Reduce the render time
![Page 11: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/11.jpg)
Agenda
• ArcGIS Server overview• Introduction to map services• Optimizing map content for dynamic services• Optimizing cached services
– Overview of cached services– Caching tools, parameters, and techniques– Using cached services– Planning: best practices
• Resources and training
D
![Page 12: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/12.jpg)
What is a cache?
1:250,000
1:500,000
![Page 13: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/13.jpg)
Why cache maps?
High Quality CartographyBest Performance and Scalability
![Page 14: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/14.jpg)
How does caching work?
1: Client action (pan, zoom, etc.)
2: Web tier: Cache?
3a: Yes! Tiles shipped immediately to client
3b: No. AGS generates map, then ships it to client
A
![Page 15: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/15.jpg)
Clients to cached map services
• ArcMap (2D)• ArcGlobe (3D)• ArcGIS Explorer (2D or 3D)• ArcGIS Web Mapping
Applications – .NET, Java, JavaScript
• ArcGIS for AutoCAD• OGC clients• Google Maps, Microsoft Virtual Earth,
Google Earth
![Page 16: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/16.jpg)
Ready-made cached map service content
• ArcGIS Online– Imagery–Shaded Relief–StreetMap–Physical–Political
• Google Maps• Virtual Earth
![Page 17: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/17.jpg)
User story
• Golden Guardian 2008– OHS, Resources Agency– Test major disaster response– Local, state, federal agencies– Over 5,000 participants– Application set up in a few days
![Page 18: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/18.jpg)
Agenda
• ArcGIS Server overview• Introduction to map services• Optimizing map content for dynamic services• Optimizing cached services
– Overview of cached services– Caching tools, parameters, and techniques– Using cached services– Planning: best practices
• Resources and training
![Page 19: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/19.jpg)
Caching tools: ArcGIS Desktop
• Map authoring and cache-management tools• ArcCatalog > Map Service Properties• Server Tools toolbox:
–Create, Delete, Update Caches–Generate Tiling Scheme
![Page 20: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/20.jpg)
Caching tools: ArcGIS Server Manager
• Define the tiling scheme for a service • Enable cache on demand• No create or delete cache tools
![Page 21: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/21.jpg)
Specifying tiling scheme
• Tiling scheme parameters• ArcGIS Online• Virtual Earth and Google Earth
![Page 22: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/22.jpg)
Behind the scenes: tiles on disk
![Page 23: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/23.jpg)
Image type
• JPEG–Lossy compression that supports large numbers of color
variation–No transparency support–Also supports compression options
• PNG8–Lossless, 8-bit, transparency support
• PNG24–Lossless, 16 million colors, transparency support
• PNG32–Lossless, 16 million colors, full transparency support
![Page 24: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/24.jpg)
Fused vs. multilayer caches
Tip: Choose fused caches to get the full performance benefits of Server caching
Create Map Server Cache tool Advanced Cached Service Properties
![Page 25: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/25.jpg)
Anti-aliasing
![Page 26: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/26.jpg)
On-demand caching
D
![Page 27: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/27.jpg)
Cache by feature class
![Page 28: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/28.jpg)
Updating a cache
D
![Page 29: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/29.jpg)
Agenda
• ArcGIS Server overview• Introduction to map services• Optimizing map content for dynamic services• Optimizing cached services
– Overview of cached services– Caching tools, parameters, and techniques– Using cached services– Planning: best practices
• Resources and training
![Page 30: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/30.jpg)
Using map caches in ArcMap
• Projection on the fly supported• Works well as basemaps for many uses• Allows continuous zoom• Allows zoom beyond the lowest cache level• Can easily blend with other services and data
9.2 9.3
![Page 31: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/31.jpg)
Client-side ArcMap parameters
• ArcMap creates a local cache–Located: %temp%\esrimapcache\–Can get out of sync with server-side cache–Administrator can allow/disallow client caching–ArcMap users can also control caching behaviors
![Page 32: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/32.jpg)
Using cached services in Web applications
• Function like dynamic map services• Navigation limited to cached scales• Cached tiles cannot be projected on the fly• Note about Internet Explorer 6 and transparent PNG images:
– IE 6 (and earlier) does not honor transparency in PNG24–Best practice: use PNG8 or PNG32
![Page 33: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/33.jpg)
Agenda
• ArcGIS Server overview• Introduction to map services• Optimizing map content for dynamic services• Optimizing cached services
– Overview of cached services– Caching tools, parameters, and techniques– Using cached services– Planning: best practices
• Resources and training
![Page 34: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/34.jpg)
Authoring maps for cached services
• Use your Cartography 101 skills• Design with caching in mind
–Choose scales wisely in the map document–Match with scales chosen for the cache job–Maplex label rules work well–Hillshades, transparencies, and advanced drawing all
supported and add nice cartographic effects
Tip: Author the map document based on the scales determined by the cache plan
![Page 35: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/35.jpg)
What will my cache look like?
• View representative areas• Simulate the effect of ArcMap’s resampling
![Page 36: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/36.jpg)
Large caching jobs
• Strategic caching and on-demand caching• For large areas, break up caching job to distinct areas• Use custom extents for areas that do not need to be cached
– Alaska, Hawaii, Continental US, but not all scale levels of Pacific Ocean
– Can cache the same map service using different full extents as long as cache tiling schema does not change
• Caching by feature class allows you to track caching progress
![Page 37: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/37.jpg)
Tip: build your cache where you’ll use it
• Most OS’s are not optimized for copying large numbers of small files—best to avoid this.
• For large caches, network storage (SAN / NAS) works well—no downtime, no moving caches.
Cache-buildingmachine(s)
Storage Area Network
Production environment
![Page 38: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/38.jpg)
Other general tips for map services
• Avoid spaces or non-alphanumeric characters • Remove sensitive information • Explicitly set a data frame background color • Remove secured services• ArcReader file (PMF)
![Page 39: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/39.jpg)
Agenda
• ArcGIS Server overview• Introduction to map services• Optimizing map content for dynamic services• Optimizing cached services
– Overview of cached services– Caching tools, parameters, and techniques– Using cached services– Planning: best practices
• Resources and training
![Page 40: Optimizing ArcGIS Server Map Services€¦ · Dynamic vs. cached map services • Dynamic services – Rendered by ArcGIS server on the fly – Examples – Roads symbolized by snow](https://reader030.fdocuments.in/reader030/viewer/2022011912/5fa4b05180496c432c43eed2/html5/thumbnails/40.jpg)
Resources
• ArcGIS Server Resource Center– ArcGIS Server Blog: Map Cache tag
• ArcGIS Server Help– Publishing Services>Types of Services>Map Services>Map Services– Publishing Services>Caching Services
• Recorded Training Seminar: Implementing and Optimizing ArcGIS Server Map Caches (http://training.esri.com/acb2000/showdetl.cfm?did=6&Product_id=931)
• Recorded Training Seminar: Authoring and Publishing Optimized Map Services (http://training.esri.com/acb2000/showdetl.cfm?did=6&Product_id=908)