Caching is a great way to speed up the performance of your day to day usage of ArcMap. By retaining previously computed extents, ArcMap can display those extents much faster the next time you visit them.
At ArcGIS 10, we’ve consolidated the cache settings for Globe Cache, GIS Servers, and the new Basemap Layer cache in one dialog. You can use this dialog to change the location on disk that these files are written, evaluate disk usage for cache storage, and to completely clear the cache files if desired.
The new Display Cache tab
In ArcMap there is a new tab called Display Cache in the ArcMap options dialog. This new tab supersedes and enhances the functionality that was previously found in ArcCatalog Options dialog’s GIS Servers tab.
When you open this dialog, ArcMap begins calculating the storage space used by your GIS Servers cache, your Basemap Layer cache, and your GlobeCache. You can choose to wait for the calculation to finish, or you can use any other part of the dialog without waiting.
From here you can modify the Display Cache location or use the Clear Cache button to clear all files from your Display Cache. One thing to note: if you are currently viewing a map which contains Basemap Layers, you’ll have to open an empty map or a map which doesn’t contain Basemap Layers in order to clear all the files. This is because the Basemap Layer cache can’t be modified while it’s in use.
Cache tab on map service layers
Map service layers also have a per-layer cache that can be modified independent of the Display Cache. To access the cache settings for a given layer open layer properties and visit the Cache tab.
Here you can clear the local cache for this layer, see where the cache is being stored, and evaluate the amount of space being used by this cache presently. You can also modify the caching options to change when and if a cache is stored for this particular layer.
Note that even if a layer is contained in a Basemap Layer, you’ll still get the Cache tab in layer properties so that you can invalidate the cache for this layer. Keep in mind that this will also invalidate your Basemap Layer cache, resulting in a slight degradation in performance on the first draw of each new extent. It’s also worth noting that some options, such as “Don’t cache any data locally” are not compatible with Basemap Layer display. You’ll get an error when you drop these layers into a Basemap Layer.
We hope that you’ll find these changes to display caching in ArcMap useful. Give them a try, and let us know what you think.
Content provided by Jeremy Wright
Here is a high level overview of how to work with reports through the various user interface components for creating, viewing and designing your reports with ArcMap 10.
The Reports menu is accessed from the View menu off of the main menu bar.
The Report Wizard steps you through the report creation process. Within the wizard you have the ability to set the major properties of the report, like choosing the fields, grouping, sorting, orientation and style. To launch the Report Wizard, click on Create Report from the Reports menu.
The Report Viewer allows you to preview your report. The viewer generates the entire report, and includes buttons and a contents view of the report for easy exploration and navigation of the report by page. You can also save, export and add the report to the layout of your map from the Report Viewer.
The Report Designer allows you to modify the properties of your existing report. In the Designer you can change properties of the report, like style or printer settings, along with the individual properties of specific design elements, like font color and size of a footnote.
11/12/09–Here’s a little known technique the ArcGIS Content team sometimes uses when working with cached map services in ArcMap 9.3.1. Suppose your area of interest is along the border of the U.S. and Mexico. You prefer the cartography in the ArcGIS Online ESRI World Street Map service, but you need the detailed Mexico streets that are currently available only in the Bing Maps Road service. You could toggle between each map but that is cumbersome and doesn’t allow for a printable seamless map using both services. Instead use the “Advanced Drawing Options” in ArcMap 9.3.1 to combine the best attributes of each map.
First, we will add the Bing Maps Road service into ArcMap using the Roads layer (LYR file) link for Using Bing Maps with ArcGIS Desktop in the ArcGIS Online Help.
We will use a polygon feature class to mask out Bing Maps within the United States. Add the feature class to your map document and uncheck the layer visibility setting so that it won’t display on your map.
Right-click the data frame (Layers) and select “Advanced Drawing Options”.
In the Advanced Drawing Options dialog, check the “Draw using masking options specified below” option, and check “Bing Maps – Roads” in the Masked Layers box.
Click OK, and now the Bing Maps service only displays outside of the United States.
Finally, add the ArcGIS Online ESRI World Street Map service for a seamless view of both services.
We hope you find this technique helpful when working with cached map services in ArcMap 9.3.1.
Contributed by Jim Mason of the ArcGIS Content team
By Charlie Frye, Esri Chief Cartographer
This post is to announce the Map Templates Resource Center. Map templates are useful examples. Each map template is a kit that contains a collection of resources needed to transfer a specific map’s design and ArcGIS implementation to you.
These templates are not the template map documents that you might have saved as an .MXT file. Instead these templates are .ZIP files that typically include: Continue reading
By Charlie Frye, Esri Chief Cartographer
Not long ago we received a question via Ask a Cartographer that our map projection experts frequently get; it goes something like this: “When projecting data to WGS84, for example, which transformation is the best to use?” Continue reading
By Aileen Buckley, Mapping Center Lead
A lot of people don’t know about the ArcMap Advanced Settings utility – it can help you customize some of ArcMap’s default options and as a result make your experience with ArcMap a bit more efficient and personalized. The executable file that starts the utility is located in your ArcGISUtilities folder. On my computer, the path is C:Program FilesArcGISUtilities. Double-click the AdvancedArcMapSettings.exe filename to start the utility. Here are some options you may find useful on the various tabs: Continue reading
In November 2006, ESRI announced the public beta release of ArcGIS Online, a set of base map and reference services available for ArcGIS users. These services include imagery, street maps, elevation data, and more. For ArcGIS Desktop users, overlaying your own data on top of ArcGIS Online is as easy as clicking the Add Data button.
But how do ArcGIS Server users overlay their data with ArcGIS Online in a Web application? It’s straightforward to add multiple services to a Web application in Manager or Visual Studio. Remember, though, that ArcGIS Online services are cached, so when using them with your map services, you’ll need to make considerations on how your map services are prepared and cached.
In this post, we’ll talk about some of the steps required for building a cached map service that you can overlay with ArcGIS Online. Note that Version 9.2, Service Pack 2 of the Web ADF included enhancements for overlaying multiple cached maps in a Web application, so before attempting these steps, you’ll need to get Service Pack 2 or greater.
Overlaying map caches in the Web ADF is all about choice of scales. For best performance, the scales from all of your map caches should match so that the original tiles can be used for each layer. Suppose you’re overlaying Cache A, which has 14 scales, with cache B, which covers a smaller area. You don’t have to build Cache B at all 14 scales, but you should make sure that the scales you do use for Cache B match a sequential subset of the scales used in Cache A.
What scales are used in ArcGIS Online?
The ArcGIS Online caches use a set of precise scales that have been carefully devised for two purposes:
- Match the scale-change thresholds built into ESRI globe clients The globe caches on ArcGIS Online were originally made from the 2D caches draped over the globe (To learn how you can use this technique, see the previous post Creating a 3D globe cache from a 2D map cache.). Unlike 2D caches for which you can pick your scales, ESRI 3D clients have built-in levels at which globe cache tiles take effect. If you use the scales in ArcGIS Online for your 2D caches, you can depend on your original rendering for each scale level appearing in ArcGIS Explorer and ArcGlobe if you ever use your service to create a 3D cache.
- Match edges at 180 degrees longitude when used on a globe Because the 2D caches are used to make the 3D caches, the scale levels used must be engineered to avoid overlap at the “edge” of the globe at 180 degrees longitude.
The scales (or technically, “scale factors”) used by ArcGIS Online are as follows:
Remember, you only need to use these precise values when building the cache in ArcGIS Server. When designing your map in ArcMap, you can use these scales without worrying about the values beyond the decimal point. To learn how to load this list of scales into ArcMap’s dropdown list, see the post Viewing cached map services (such as ArcGIS Online) in ArcMap.
Designing your map
How did ESRI design the maps that are available in ArcGIS Online, for example, the World Street Map? The cartographers in charge of this project first determined the scales at which the map would be cached, then chose layers and symbology appropriate for each of those scales. You’ll do a similar thing when building your map service that will overlay ArcGIS Online.
This is an easier process when working with raster imagery. You’ll notice that the ArcGIS Online satellite and aerial imagery services only include two or three different resolution raster images, and no extra symbology changes are needed before caching these at numerous scale levels. However, when using vector features, you may need to make subtle symbology changes at each scale in order to keep your layers from cluttering the map, or to keep the map from looking too sparse. Since you’re more likely to be putting your vector data on top of ArcGIS Online raster layers, instead of vice versa, we’ll focus on what it takes to prepare vector data for caching and overlay.
Here’s a suggested workflow for preparing vector layers for a map service that will overlay ArcGIS Online:
First, do some planning by making a list all of the layers that will be visible in your map. Include all layers, whether they will be visible at all scales or not. Leave some space in between each layer name.
For each layer, list the ArcGIS Online scales at which the layer will be visible. For example:
Create a new map document and set the data frame coordinate system to GCS_WGS_84. Currently, you must use this coordinate system for any map that you intend to overlay with ArcGIS Online. In the future, ArcGIS Online intends to provide maps in additional coordinate systems.
Add each layer to your map n number of times, n being the number of scale levels at which the layer will be visible. (You may find that copying and pasting the layers back into the table of contents is faster than using the Add Data button for this purpose.) You can keep the default symbology of all layers for now.
In the table of contents, give each instance of the layer the name of one of the scales you chose and set a scale range on the layer that encompasses that scale. For example, name one of the layers Parks 1:72k and set a scale range of 1:50,000 to 1:100,000. Name another layer Parks 1:144k and set a scale range of 1:100,000 to 1:200,000. Be sure that the scale dependency thresholds you choose do not overlap the next highest or lowest ArcGIS Online scale (for example, you would probably not want to set a scale range of 1:100,000 to 1:300,000 because that encompasses two ArcGIS Online scales: 288571.873604331 and 144285.936802165).
Now create a group layer that includes all scales for a layer. For example, take the layers Parks 1:72k, Parks 1:144k, Parks 1:288k, and Parks 1:577k and make a group layer out of those called Parks. The image below shows an ArcGIS Online source map document that has been organized in a similar way for roads and place names. Note the group layers in the table of contents.
Set the appropriate symbologies for all layers at all scales. A good strategy is to start at the smallest (farthest out) scale, set symbology for all layers, and then work inward by scale level, setting the symbology for all layers at that level before moving in to the next scale. This is where loading the custom scales into the ArcMap dropdown, as mentioned earlier, can be useful.
When you are satisfied with the appearance of your map document at all scales, publish it as an ArcGIS Server map service.
Create the map cache, using all or a sequential subset of the precise ArcGIS Online scales specified above. For the tile origin, use -180, 90. For the tile size, use 512 X 512. For image format, it’s recommended that you use PNG8. You should not use JPG if you will put the cache on top of any other layer, since JPG does not support transparency. Also, if you choose PNG24, Internet Explorer 6 users may not be able to see the transparency correctly due to a limitation in the browser.
Additional help for creating the cache:
To avoid typing or copying all of the precise scales, see the post How to build a cache with the same tile sizes and scales as ArcGIS Online. Here you can download the tiling scheme file for ArcGIS Online, which you can then load into the cache generation tool.
For more detailed information on generating a cache for a map you’ve designed to overlay ArcGIS Online, see Overlaying your own caches with ArcGIS Online in the .NET Web ADF.
As with any large-scope caching project, you should initially cache a small area to ensure the tiles look as you expect. See Strategies for large caching jobs for an explanation of how to cache just a small area.
Add the cached map service and an ArcGIS Online service to a Web Mapping Application.
Note: Manager gives an option for you to select which service will provide the coordinate system and extent for the map. In this scenario, you can choose either the ArcGIS Online service, or the one you just cached, depending on the initial extent you want. Do not select any other services that your map may contain.
Here’s an example of a map that overlays ArcGIS Online. In this example, I created a map of USGS topographic map boundaries and names that is designed to overlay the NGS_Topo_US_2D service from ArcGIS Online. The boundaries are for three available series of USGS maps, including the 7.5 minute quadrangles. You’ll need to zoom in from the initial extent in order to see the boundaries.
The boundaries map is cached at the following scale levels:
Notice how the symbology of the boxes and the annotation changes as you zoom between scale levels. This example requires some flexibility with the procedure listed above because some of the layers use the same symbology for multiple scale levels. Also, some of the layers are designed to overlap at certain scales. For example, the solid dark lines overlay the dashed green lines at a few scales.
It’s possible that your map projects will require similar adjustments. Detailed planning using drawings, tables, and other visual aids, if necessary, can help you set the proper scale dependencies and symbology for each layer. Careful testing, as well as some trial and error, will also help you ensure that your map looks appropriate at all scales. It’s worth the extra effort to make sure the map is correct before creating the cache, especially if the cache will include many scale levels.
ArcMap allows you to view cached map services at any scale and projection. When you zoom in to a cached map service, ArcMap generally fetches the tile from the next largest scale, then resamples it to fit the view. This works great for layers like satellite imagery and continuous surfaces; however, vector features such as roads and boundaries, as well as labels, become rasterized when you create the cache, and sometimes the resampling causes these features to display at less-than-expected quality. To minimize the amount of resampling and therefore get the best display quality, you may want to limit your work in ArcMap to the scales at which the map was cached.
If you decide you want to work only at the cached scales, consider loading these scales into ArcMap’s dropdown scale list. One of the options in the dropdown is “Customize this list”. Here you can manually enter the scales from your cache.
Alternatively, you can load in a text file containing a set of scales. This is useful if you have several ArcMap users in your organization that will be viewing the same caches; just distribute the text file and they can load it in instead of typing all of the scales.
If you’re viewing caches from ArcGIS Online, you can load in this text file of ArcGIS Online scales which contains all of the scales at which ArcGIS Online services have been cached. If you’re wondering why the scales are not round numbers, you’ll find an explanation in this previous post.
These scales are especially useful when viewing the World Street Map as well as any map containing boundary and transportation overlays.
Update: In ArcMap 9.3, a new feature was added that allows you to right-click a cached map service layer in the table of contents and click “Zoom to Nearest Cache Resolution”. This can be an easy alternative to loading in a text file.