Introduction to map slices
Map slicing, is to cut a map into a lot of small and uniform size, call time, only the necessary parts will send the past, save bandwidth, but also save the server side of the time to render the map. But map slicing has a feature, is not suitable for frequent changes, or real-time dynamic data, because map slices are map server-side pre-rendered good, and the production of map slices is a long process, it can be said that it really takes a long time, but the use of a cost, In exchange for performance improvements and the time to save multiple renderings is worthwhile.
Slice, like, cover a grid on a map and cut it straight out. The difference is that the slices may be in many stages, in order to support the display at different zoom levels:
Configure the ability of ArcGIS to make map slices
The tile format that you make with ArcGIS is .tpk
that your ArcGIS-made apps, such as those that are developed using ArcGIS Runtime SDK for Java, IOS, Windows Mobile, Android, and WPF, can be loaded.
So how do you make it? ArcGIS does not turn on the ability to make tiles by default, we need to turn on this feature first! First click on the Customize
menu, rotate ArcMap Options
, and then tick the Enable ArcGIS Runtime Tools
options, click 确定
, this completes the configuration, you can make slices.
Making slices from ArcGIS
First open the map you want to make slices, make the slice can be a vector layer, such as "Shapefile" file, can also be a raster layer, such as a satellite image, can be a layer, can also be superimposed on multiple layers of the production. You can also decorate your map, such as setting an icon on a point layer, labeling features, and creating slices with those decorations.
Click on the File
menu, select Share As
, then click Tile Package
, in the popup dialog, you can configure your slice properties, and storage location. Such as:
Set the number of slices to produce, up to 20 levels can be generated, although very fine, but you certainly do not want to do so, because you wait for the time will not be able to imagine. As far as my personal use is concerned, the region of a county, the generation of 16th-level slicing took 8 hours, 17th level, straight a day did not generate finished.
After setting some properties, click the button in the upper right corner
Share
, it goes into the build phase, and if you generate more than 16 slices, I'm sure you'll wait until you get impatient, unless your computer is super-high.
Generate results
If you configured the above to generate a folder (without the. tpk suffix), then you can see the directory of the generated files as follows: The yourFileName/v101/Layers/_alllayers
directory below is all the levels generated:
Summarize
One of the most impressive things about generating slices is that if the generated levels are too high (for example, greater than level 16), the wait time is very long because the grid above can be seen because each level is 4 times times the relative level, and each level is divided into four slices of the same size at the previous level. That is, the number of slices generated per level will be 4 of the power of n times.
, level 11th, is already 1,048,576 slices, reaching level 20 will be astronomical. Therefore, in the actual use, or according to the actual situation to set the resulting fineness, do not blindly set very high.
OK, write it down here.
Make map slices (tiles) from ArcGIS