How to load Arcgisserver service tutorials for Google satellite maps in Osgearth

Source: Internet
Author: User

How to load arcgisserver service tutorials for Google satellite maps in Osgearth
Description:
This example shows how to publish the downloaded image tile data in ArcGIS and load the published tile service in Osgearth.
This example uses software version: arcgis10.2,osg3.3.1 and osgEarth2.5 VC10 compilation environment (refer to Osgearth loading Google satellite map source case), water by note Universal Map Downloader.
image Tile Source "Water by note universal Map Downloader". If you do not install the software, you can Baidu "water by note software" to the official website to download.

First, download tile data

start Water by note Universal Map Downloader, click "box select Download Area", double click the Download area, select the series, such as.



since we need to export tile data, in order to increase the zoom effect, here we check from Level 1 to level 10. After selecting a good level, click Start Download. When the download is complete, a dialog box asks if you want to export now, select Yes, and then display the Export Picture Data dialog box, as shown in.



In the dialog box, select Export tile: ArcGIS Server, export level "1-10", click "Output" button to export the data.
The default export path is "D:\SGDownload\ tt2_arcgisservertiles".


Ii. Publishing Services in ArcGIS
First, the newly downloaded tile file opens in ArcMap and can be previewed to a tile map, such as



Publish the service, select File, share as, service



Pop-Up dialog box, click "Next"







Click "Continue" to bring up the Service Editor dialog box.



the setting here is the point.
1, click "Cache", 2, select "Use the tiles in the cache", 2, select "Tiling Scheme", 3, choose us to download the Tiles folder in the Conf.xml file; 4, select "Build Cache Manually", and finally "publish".
after the publication is successful, you can view it in ArcGIS Manager and then discover that the map service I published is blank.
The next step is to add the tiles we downloaded.
under "Directory" right click on the published file, select "Manage Cache", select "Import Cache", Pop up the dialog box, import the downloaded tiles such as



after the import succeeds, save and restart the Testtiles service in ArcGIS Server Manager.
You can now preview the tile service that was published.



Click the preview image, load it in the ArcGIS JavaScript API, and zoom to show the animation effect.





Third, loading tile service in Osgearth
Create a new Test.earth file with the following code
<map name= "MyMap" type= "geocentric" version= "2" >
<image name= "T1" driver= "Gdal" >
<url>data/tt2.tif</url>//Basemaps
</image>
<image name= "T2" driver= "ArcGIS" >
<url>http://localhost:6080/arcgis/rest/services//testtiles/mapserver</url>//Tile Service
</image>
</map>
Open cmd, enter: "Osgviewer.exe D:/test/test.earth" run effect as



after zooming in



The document comes from water via note:Www.arceyes.com

How to load Arcgisserver service tutorials for Google satellite maps in Osgearth

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.