40
Optimizing ArcGIS Server Map Services

Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

  • Upload
    others

  • View
    13

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

Optimizing ArcGIS Server Map Services

Page 2: Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

ArcGIS ServerServices + Applications

GlobeServices

MapServices

Analysis &ModelingServices

ImageServices

Open OGCServices

WebBrowsers

Desktop Explorer Mobile EnterpriseEnvironment

OpenAPIs

Page 5: Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

Map Services

Page 7: Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

Optimizing dynamic services

• Reduce the amount of data to be handled

Page 10: Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

Optimizing dynamic services - continued

• Reduce the render time

Page 11: Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

What is a cache?

1:250,000

1:500,000

Page 13: Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

Why cache maps?

High Quality CartographyBest Performance and Scalability

Page 14: Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 17: Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

Specifying tiling scheme

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

Page 22: Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

Behind the scenes: tiles on disk

Page 23: Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

Anti-aliasing

Page 26: Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

On-demand caching

D

Page 27: Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

Cache by feature class

Page 28: Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

Updating a cache

D

Page 29: Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

What will my cache look like?

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

Page 36: Optimizing ArcGIS Server Map Services - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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 - Esri · Authoring maps for cached services • Use your Cartography 101 skills • Design with caching in mind –Choose scales wisely in the

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)