Use ArcGIS Mobile SDK 9.3 to develop Mobile device applications-advanced

Source: Internet
Author: User
[Overview] This section describes how to use the Mobile SDK provided by ArcGIS Server 9.3 to develop Mobile device applications.

 

Environment: Windows XP SP3, ArcGIS Server 9.3, Visual Studio 2008, and Windows Mobile 6 Professional SDK

 

 

Pre-generated map Cache

As we know, ArcGIS Mobile supports offline and online applications. We can choose to allow the ArcGIS Mobile application to save the map cache at the first request, or pre-generate the cache before this (before deploying the application) and release it together with the application. Is it a bit like the original single-host device application?

Okay. Let's open ArcCatalog and start the ArcToolbox toolbox:


In the toolbox, find "Mobile Tools ". ArcToolbox provides two tools for Mobile applications. The "Generate Mobile Service Cache" is used to Generate the Cache of the Mobile map Service.

Click OK. After processing, the cache is generated in the specified directory. We can compare these caches with those generated on mobile devices through the MobileService object. In other words, after these caches are deployed to the cache directory during deployment, MobileService can directly open them without any interaction with the server.


 

Mobile Basemap

This is a special data of Mobile. It aims to make map data highly compressed to optimize the performance of Mobile devices. Basemap is different from the Mobile map service data we used earlier. Basemap does not provide user operations and will be rendered first when the program is running, all other Mobile maps will be drawn above it-simply put, it should be called a basemap.

It is easy to Create a Mobile Basemap. Click "Create Mobile Basemap" in ArcToolbox and follow the prompts to Create a Mobile Basemap. An mxd document corresponds to a navmap file, and each layer also has a corresponding file.

In ArcGIS Mobile, there is a special namespace "ESRI. ArcGIS. Mobile. SdcData", which includes all the classes for Basemap operations. In fact, the data corresponding to Mobile Basemap is called SDC base map data.

Basemap is easy to use:

Try
{
ESRI. ArcGIS. Mobile. SdcData. SdcMapLayer sdcMapLayer = new ESRI. ArcGIS. Mobile. SdcData. SdcMapLayer (@ "\ Storage Card \ bj_basemap \ bj. navmap ");
Map. MapLayers. Add (sdcMapLayer );
}
Catch (Exception ex)
{
MessageBox. Show (ex. Message );
}

Check the effect. We have pre-deployed the Basemap generated by the entire Beijing map to the mobile device, instead of publishing the building layer to the map service. The Basemap is automatically lined at the bottom. Think about it. For some applications, do you have the impulse to generate Basemap for all the infrequently changed content?

Oh, it should be noted that the spatial reference of Basemap and other Mobile map services must be consistent.

 

Develop mobile desktop programs

What is the difference between a mobile desktop program and a non-mobile desktop program? Therefore, there are too few things to be mentioned in this part. You can develop and debug mobile devices. Is it still difficult for desktop programs?

Of course, you still need to pay attention to it. For example, do not set. Net Framework to version 3.5 by default when creating a project.

 

FAQs

The following are some common problems mentioned in Develop Help:

1.ArcGIS 1, 9.3Mobile SDKUse ArcGIS 9.2Released Mobile Service?
Sorry, no ......

2.I can use Visual Studio 2003Develop ArcGIS MobileApplication?
No. ArcGIS 9.3 Mobile SDK requires. Net Compact Framework 2.0 support.

3.I generated MobileApplication, but why can't I see the map?
If you use the map cache, check whether your cache path is correct. If you are retrieving data from the server, check whether your Mobile map service works properly. At the same time, make sure that the MobileService object in the Datasource property of your Map control is set correctly.

4.Why ArcGIS Mobile toolboxNot added to Visual Studio 2008Coming from the project?
ArcGIS 9.3 Mobile SDK cannot be compatible with. Net (Compact) Framework 3.5. This is the default setting of Visual Studio 2008. Be sure to select the correct. Net Framework when creating a project.

5.How to Develop ArcGIS MobileWhat is the latest application information?
Http://edn.esri.com/index.cfm? Fa = mobile. gateway

Conclusion: the overall content of ArcGIS Mobile SDK 9.3 has been basically introduced. ArcGIS Mobile was released as part of ArcGIS Server, which is closely linked with ArcGIS Server. Of course, in fact, in some conditions, ArcGIS Mobile can still run out of ArcGIS Server. I hope this article will help you develop Mobile GIS applications!

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.