Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your...

Preview:

Citation preview

Optimizing ArcGIS Server Map Services

Agenda

• ArcGIS Server overview• Introduction to map services• Optimizing map content for dynamic services• Optimizing cached services• Resources and training

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

ArcGIS ServerServices + Applications

GlobeServices

MapServices

Analysis &ModelingServices

ImageServices

Open OGCServices

WebBrowsers

Desktop Explorer Mobile EnterpriseEnvironment

OpenAPIs

Agenda

• ArcGIS Server overview• Introduction to map services• Optimizing map content for dynamic services• Optimizing cached services• Resources and training

Map Services

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

Agenda

• ArcGIS Server overview• Introduction to map service• Optimizing map content for dynamic services• Optimizing cached services• Resources and training

Optimizing dynamic services

• Reduce the amount of data to be handled

Optimizing dynamic services - continued

• Reduce the render time

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

What is a cache?

1:250,000

1:500,000

Why cache maps?

High Quality CartographyBest Performance and Scalability

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

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

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

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

Caching tools: ArcGIS Desktop

• Map authoring and cache-management tools• ArcCatalog > Map Service Properties• Server Tools toolbox:

–Create, Delete, Update Caches–Generate Tiling Scheme

Caching tools: ArcGIS Server Manager

• Define the tiling scheme for a service • Enable cache on demand• No create or delete cache tools

Specifying tiling scheme

• Tiling scheme parameters• ArcGIS Online• Virtual Earth and Google Earth

Behind the scenes: tiles on disk

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

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

Anti-aliasing

On-demand caching

D

Cache by feature class

Updating a cache

D

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

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

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

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

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

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

What will my cache look like?

• View representative areas• Simulate the effect of ArcMap’s resampling

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

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

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)

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

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)