How does ArcGIS Server overlay a small map to google maps or virtual Earth?

Source: Internet
Author: User
Tags javascript extension
How does ArcGIS Server overlay a small map to google maps or virtual Earth?

I own a factory. Map It is CAD and converted to shape format. Then place the map correctly on the map of Google Maps in Shanghai.

online document 1:
if you want to associate your data with arc GIS online data is used in combination. 1. Select primary map resource as the latter (in one case, you can use your service as the primary map resource, that is, the coordinate system of your data is the same as that of ArcGIS online or Google map, but the scale level of the cache is only a subset of them .); 2. For map documents of your data, select predefined> geographic coordinate systems> world> WGS 1984 in the data frame system. ArcMap dynamically projects your data to the coordinate system; 3. Select load an existing tiling scheme from ArcGIS online services during cache. This ensures that the scale level is the same as that of ArcGIS online. By default, ArcGIS online has a cache of more than 10 levels for its own data, you can create several levels, but refer to the previous analysis for possible situations. For data that needs to be superimposed with Google Map, steps 1, 2, and 3 are also shown above. Note that you should select predefined> projected coordinate systems> world> WGS 1984 web Mercator in step 2.
if an error occurs when you click load an existing tiling scheme in step 3, you may have skipped step 2.
online document 2:
usage space reference

Elements on a map refer to the locations of objects in the real world. The positions of these objects on the sphere are measured by longitude and latitude. This is what we know about geographic coordinates. Although the longitude and latitude can accurately represent the positions of objects on the sphere, they are not the unit of measurement. To solve the measurement problem, data is often obtained through projected coordinate system ., converts a 3D Geo-Coordinate Map to a 2D plane. The projection coordinate system describes the distance to a coordinate system whose origin is (0, 0) --- (the X axis represents the distance between East and West and the Y axis represents the North-South Coordinate System)

Because the earth is a circular map that is flat, the confidence in the plane Obtained from the curved spherical surface requires a conversion called map projection (Map Projection). A map projection converts the coordinates of longitude and latitude into the X and Y coordinates of a projected coordinate system.

Coordinate system, which includes geographic and projection coordinate systems. It is used to describe projection, Data, unit, and meridian information.

Each coordinate system is defined by a well-known ID (wkid) and a string (WKT.
DesignAdd your own map

Google maps or Microsoft vitual Earth

Release 9.3 ArcGIS JavaScript extension for the Google Maps API

Release 9.3 ArcGIS JavaScript extension for Microsoft Virtual Earth

ArcGIS Server 9.3 contains JavaScript extension packages for Google Maps and Mircosoft Virtual Earth APIs. If you want to use these extension packages to add your maps to google maps or Microsoft Virtual Earth, follow the procedure below to create your own map:

Author the map

You will create a map In ArcMap, add data, and add appropriate labels. When designing a map, you will need to use the same coordinate system and scale as Google Maps and Microsoft Virtual Earth.

Change the coordinate system to WGS 1984 web Mercator

The first thing to do to design a map is to change the coordinate system of the data framework to the same as Google Maps and Microsoft Virtual Earth, that is, WGs 1984 web Mercator. To change the coordinate system, follow these steps:

1. On ArcMap TOC (Table of Contents), right-click the data frame name (layers by default) and select Properties)

2. Click the coordinate system tag.

3. Click predefined-> projected coordinate systems-> world-> wsgs 1984 web Mercator, and then click "OK"

Note: If the geographic coordinate system does not use wgs1984 datum or grs80 elliptical (ellipsoid ), you will need to convert your data to adapt to Google Maps and Virtual Earth correctly. Nad83 is a geographic coordinate system using grs80 elliptical bodies.Example. Geographic coordinate systems that are not applicable to WGS 1984 datum or frs80 elliptical bodies include nad27, ED50, and so on. For more information, see ESRI Knowledge Base Article 34749 (if you want to perform these conversions)

Design at the Google Maps and Microsoft Virtual Earth scales

Users of your map will see the scales used by Google Maps and Microsoft Virtual Earth, so you can only use these scales when designing your scales. But how do you know the scale?

You can load the scale of Google Maps and Microsoft Virtual Earth to your ArcMap scale drop-down list by following these steps:

1. Copy the TXT file gmaps_ve_scales.txt to a location that is easy to remember. (This file is stored in c: \ Inetpub \ wwwroot \ ArcGIS \ Manager \ HELP \ gmaps_ve_scales.txt)

2. Open ArcMap and add some data

3. Click the scale drop-down list of scales and click customize this list.

4. Click Load

5. Open the gmaps_ve_scales.txt file.

6. Click OK to make your change take effect. You will see that the scales of all Google Maps/Virtual Earth are easily displayed.

You only need to make the appearance of your map at the corresponding scale, because you need to make a map at each scale.Cache. If you do not plan to cache large scales, you do not have to do any design work on these scales.

You can set a scale range on your layer to see different content at different scales. When you set a scale range, do not close or open the layer at or near the scale you have edited.

You may need to copy your layers so that you can give them different symbols at different scales. The TOC of ArcMap can contain multiple copies of one layer. Each one can have its own symbol and scale range. To copy a layer, click it In ArcMap TOC and click Copy. Right-click the data frame name and then click paste layer (s ).

Publish the map as a service
After creating your map document (. xmd), you need to publish it intoArcGISServer map service, so that you can use it in your JavaScript Application. One of the earliest ways is to right-click the map document on arccatalog and then click Publish to ArcGIS.Server

Learn more about publishing a GIS resource to the server.

Create a map Cache

One reason why Google Maps and vritual eart access speed is very fast is that they use the map cache on the server side, which means that the images generated in advance are stored on the server side, in this way, you can quickly access through a URL. With ArcGIS Server, you can create a similar cache for your map. Creating a map cache is recommended to optimize map performance (required to use ArcGIS JavaScript extension for Virtual Earth ).

The map caches section contains many details about planning, creating, and updating the map cache. There are many ways to create a cache. The following are the key steps:

1. Right-click the service in arccatalog and click Service properties.

2. Click the caching label and select "using tiles from a cache that you will define below" to draw a map.

3. Click "load tiling scheme from" and select Microsoft Virtual Earth/Google maps from the drop-down list.

4. Change the cache directory if necessary

5. Click Create tiles. The cache tool will show that many data has been filled in.

6. Do not select the scale you do not need to cache. If your map covers a large area, you will not be able to see it at a large scale (zoom in), so do not select these large scales.

7. Set the update mode to recreate all tiles and click OK. The tool will create these tiles

Depending on how large your map is and what scale you choose, creating all tiles will take a long time. See planning a map cache to learn more about the factors that affect the cache creation time.

Once you 've finished creating the cache, you're ready to use your map with Google maps or Microsoft Virtual Earth. see developing with ArcGIS Server: An Overview to learn how you can develop JavaScript applications that overlay your maps with Google Maps and Microsoft Virtual Earth.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.