Select to view content in your preferred language

Cache issue - polyline layer not visible

2839
5
01-17-2011 01:29 PM
SobodhDangwal
Occasional Contributor
Hi There

We have some 9.3 custom apps which I am migrating to version 10. The migration is all good but the issue is the Polyline layer doesn't show over the aerials.

I created a mobile cache using the Toolbox tool Create Mobile Map. Then deployed this cache to the mobile device. The cache has three layer

  1. Points data

  2. Line data

  3. Aerial photos

The points are displaying fine over Aerials but the polyline data is not visible. If I remove the aerial photos then I can see polyline. It seems aerials are not letting lines to be visible over them.

Any idea?
0 Kudos
5 Replies
AkhilParujanwala
Regular Contributor
I know this may sound simple but it matters how you add the layers in ArcGIS Mobile 10.

2 Examples:

1) In ArcMap you can create one mxd with all 4 layers in order on the TOC:
Points on top of
Lines on top of
Polygon on top of
Imagery (base)

Then create a service and put it in ArcGIS Mobile 10.


2) If you are using Mobile Project Center the same idea applies there.
Imagery service is added first then
Polygon service then
Lines service then
Points added last.

This way your layers will be in the proper order when you use them in ArcGIS Mobile 10.

I hope this helps.
0 Kudos
SobodhDangwal
Occasional Contributor
I have used the proper order on the MXD i.e. point, line them imagery don't have any polygon layer. Created a MSD service and them cached it using Create Mobile Map Tool within toolbox.

I am using this caching tool as the service is not letting the cache to be built programatically neither its letting it syncronise so have to use the toolbox tool Syncronise Mobile Map from toolbox to sync.



I know this may sound simple but it matters how you add the layers in ArcGIS Mobile 10.

2 Examples:

1) In ArcMap you can create one mxd with all 4 layers in order on the TOC:
Points on top of
Lines on top of
Polygon on top of
Imagery (base)

Then create a service and put it in ArcGIS Mobile 10.


2) If you are using Mobile Project Center the same idea applies there.
Imagery service is added first then
Polygon service then
Lines service then
Points added last.

This way your layers will be in the proper order when you use them in ArcGIS Mobile 10.

I hope this helps.
0 Kudos
AkhilParujanwala
Regular Contributor
Sorry but now I have lost in terms of what you want.

Are you using the Windows Tablet (out-of-the-box-solution)?

Do you have an ArcGIS Server?

The points and lines layers are operational layer correct?

Did you create and mxd and then publish it to the arcgis server?

I know you want to use the Toolbox in ArcMap to make the map cache but you can do the same in the application and use that and deploy it to all computers.

Sorry for all the questions just trying to understand what you need.
0 Kudos
SobodhDangwal
Occasional Contributor
Sorry but now I have lost in terms of what you want.

Are you using the Windows Tablet (out-of-the-box-solution)?

Do you have an ArcGIS Server?

The points and lines layers are operational layer correct?

Did you create and mxd and then publish it to the arcgis server?

I know you want to use the Toolbox in ArcMap to make the map cache but you can do the same in the application and use that and deploy it to all computers.

Sorry for all the questions just trying to understand what you need.



No Worries I will try to explain again.

I have some custom ( not out of the box) made ArcGIS Mobile 9.3 apps for smartdevices HP IPAQ and I am planning to migrate them to ArcGIS server 10. We have already migrated to ArcGIS server 10.

I have made the changes in the code e.g. adding mobileCache and Mobile ServiceConnection and removing the mobileService objects. The code compiles fine.

Now I have a mobile service created using a MXD. The MXD had three types of layes Points, Line and aerials respectively. This MXD is them published using ArcGIS server 10.

First issue -The code is running fine apart from the syncing. I mean I am not able to create cache or syncronise cache programatically. So mobileServiceconnection1.createCache()  and syncAgent.Syncronise(mobileCache1) methods are not working. Now I found a workaround to this by using the Mobile Toolbox tools CreateMobileMap and SyncroniseMobileMap and manually creating and syncing the cache which almost works fine.

Second issue -This is the main issue, after creating the cache from the Createmobilemap tool, the line layer is behaving funny. It doesn't show up over aerials so I mean it becomes invisible. If I remove aerials then it shows up. I want lines and points over the aerials but all I can see is the point data over aerials. The line layer shows just for a second but them disappears.

Here are the answers to the above questions.

Are you using the Windows Tablet (out-of-the-box-solution)? - No out of the box app, custom 9.3 code and using HP IPAQ

Do you have an ArcGIS Server? - yes, ArcGIS server 10 running java flavour.

The points and lines layers are operational layer correct? - yes

Did you create and mxd and then publish it to the arcgis server? Yes

I know you want to use the Toolbox in ArcMap to make the map cache but you can do the same in the application and use that and deploy it to all computers. - I don't want to use the Toolbox tools but I have to use it as I am not able to create and sync the cache programatically. I would love to know how to do it in the application and then deploy to all computers.


Any help would be highly appreciated. I am open to any more questions.
0 Kudos
AkhilParujanwala
Regular Contributor
Ok thanks for expalining I understand your issue.

To try and solve your first problem of the Sync using your code, your code may be incorrect/wrong, for ArcGIS Mobile 10 we are using some new code.

Have a look at this thread for Upload:
http://forums.arcgis.com/threads/18983-ArcGIS-Mobile-upload-for-custom-app

To be honest there are a few threads regarding this, search for them, there may be a few posted by me too.


To try and solve your second issue, I have a few ideas you may want to try:
1) Make two mxds, one for your Points and Lines and the second one just for your raster, then see if you get that problem of lines disappearing.

2) In your current mobile application, zoom in and zoom out where the lines disappear, this could be a graphic rendering issue?

I hope this helps.
0 Kudos