GoogleMap cutting program based on arcengine

Source: Internet
Author: User

It has been more than half a year since I wrote the GoogleMap cutting program (3) based on Supermap Objects. During the past six months, there have been many things, therefore, the blog content is rarely updated. Today is a small year. It cut the Google map recently written based on arcengine.ProgramShare with you. Here I will introduce you to the data production-cut graph-release, and tell you how to deploy a real offline WebGIS system based on the previous Google map api3 offline version:

I. Environment preparation:

1. arcengine: This is required because we use arcengine as a platform for development,Version: 9.3.

2. ArcMap: currently, no map configuration function is added to the graph cutting tool. You can only open the configured map file. Therefore, ArcMap is also required for map data configuration.

3. DOTNET: The program is developed in C #, so you must have this environment. There are a lot of websites on the Internet. You can search for them and download. NET Framework 2.0.

Another reason for choosing ArcGIS for development is that there are many domestic users and PJ is relatively more. You can find a lot of information on how to install it on the Internet.

2. Map Configuration:

After installing ArcMap and arcengine, We can configure the map data to be cut. Because Google map uses the Web WGS84 projection method, we also need to configure the same coordinate system as Google map during configuration. The coordinate configuration file is downloaded from here: google Mercator (World ). prj. Of course, we also need to prepare a copy of the data used for graph cutting. Here we use the test data from ESRI.

Yes: ESRI public geographic framework Electronic Map template _ v1.31 for ArcGIS 9.3.1

We have already made it very clear about map configuration and usage. We are also very grateful to ESRI for sharing these materials.

The configured data should look like the following:

3. Map cut:

I will package the configured map data with the program for you to download. Of course, you can also use your own vector data and image data. As long as you configure the map through ArcMAP, we should be able to use this program for map cutting.

1. Now let's run our graph cutting tool. This is the map interface. By default, the program loads the map. mxd file under the Data Directory.

I have configured the coordinate system of the map data. You can use ArcMap to directly open the map data.

2. switch to the cut graph interface: here, we can specify the range of the cut graph and the level to be output. I have already set it in the program. If it is new data, set it on your own.

3. After setting all the cropping parameters, click "map output" and select the saved path. The system starts cropping the map.

4. After the cropping is completed, the time and number of cropping are displayed:

4. Data publishing:

1. copy the converted map image data to the tilemap directory of the offline version of Google map API V3. If you do not want to cut the map yourself, you can also view it using the map data I cut:

2. Open the maptype-tms.html file under the Google map API v3release directory to see the effect:

3.maptype-tms.html by default, the image data in the tilemap directory under the current directory is loaded. You can also specify another directory. Of course, if you put the image on the Web server, you can change this address to the server address, so that you can deploy a Google Map Browsing program of your own (you have so much data in advance ).

We have been waiting for a long time. We can download the cut graph here:

Graph cutting tool and map data: gmapexprotforarcengine.zip

Google map API V3 offline version: googlemapapiv3.zip

Data after cropping: googlemapapiv3demo.zip (limited space, so only 6-8 levels are uploaded, 9 and 10 levels are cut by yourself)

Due to the limited level, the program may be imperfect. Please let me know. If you have better suggestions, please let me know.

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.