Select to view content in your preferred language

How to download all feature layers without selecting area through IOS SDK.

3708
28
03-27-2017 07:10 AM
KamalMittal
Deactivated User

Hi,

I want to generate a geodatabase which contain all feature layers data so that I can use that database when there is no internet connection but I do not want to give an option to user to select area of interest.  All feature layer data should be  download automatically in background. 

Thanks,

Kamal

Tags (1)
0 Kudos
28 Replies
KamalMittal
Deactivated User

Hi Nicholas,

Thanks for your good suggestion. I will keep in mind your feedbacks in future. A couple of question from you:

1.  Actually I am getting only "Staging server" failed message while sharing tpk from ArcGIS Pro. How do I get log file?

2. Our Client generally preferred ArcGIS Online as first it is on cloud and second they can create and publish layer from anywhere without dependent on standalone ArcGIS pro application on single computer so that's why my queries were related to ArcGIS online. There are two reason to purchase streetmap extension is that first to extract basemap from that and to get locator file.

3. There is one question from you I want to get specific borough's from whole NewYork State. Currently I have whole NewYork State Streetmap extension and I want to get five boroughs(Manhattan, Queens , Bronx , Brooklyn , Staten Island) from that Streetmap extension. Is it possible to get that?

4. Another thing is that currently I have whole NewYork State locator file and I want to get only above five boroughs relevant locator file. How do I get that?

Thanks,

Kamal

0 Kudos
KamalMittal
Deactivated User

Hi Nicholas,

Any update on this??

Thanks,

Kamal

0 Kudos
Nicholas-Furness
Esri Regular Contributor

Hi Kamal,

  1. I would open a support ticket, or ask in the ArcGIS Pro forum.
  2. It'll be a balance for the time being. Once we support taking a Vector Tile Service offline from ArcGIS Online, you will be well served by the ArcGIS Online basemap and features approach. However, given the size of the TPKs if you include levels up to level 20 (which may be related to the error you are seeing in 1), if I were you I would use a side-loaded Vector Tile Package on the device. Of course, as you say, locator will still need to be generated in ArcGIS Pro.
  3. Yes, when you create an MMPK or export data, you will have options to clip to a given area. That might be the visible map area or some other area you define. That should allow you to export only the area you need.
  4. I will check whether the same is true for the locator and will update this answer. [UPDATE: Yes, the locator and network model are clipped appropriately, see the post script below].

Cheers,

Nick.

P.S. Here are instructions for exporting just the part you need to an MMPK (assuming you've already got the source MMPK open in Pro - I used the USA Northeast Region, but more instructions are here and here😞

  1. Open the Analysis Tab.
  2. Pick “Tools” to show the GP Tool browser on the right.
  3. Find and select the “Create Mobile Map Package” tool.
  4. Specify an output MMPK. This is what you will use in the Runtime app.
  5. Specify a locator. USA comes with the source MMPK and will be clipped with the data.
  6. Check the “Clip Features” box to exclude data outside of the extent we’ll set up.
  7. Set up the extent. The drop-down has convenient options. Here I’ve zoomed the map display to what I want and I pick “Current Display Extent”.
  8. Click Run. As long as you’re properly licensed to use StreetMap Pro (your Org Admin must enable this), in a bit you’ll have an MMPK (see step 4) that includes Routing and Geocoding.

Exporting a clipped MMPK from SMP MMPK source

KamalMittal
Deactivated User

Thanks Nicholas for step by step explanation.

I have created mmpk file of Manhattan city by follow your steps and then create .vtpk file from that mmpk. I have also extract locator file from manhattan mmpk file using python code. but after extract I got multiple locator files:- USA_PointAddress.loc , USA_StreetAddress.loc , USA_PostalExt.loc , USA_StreetName.loc , USA_Postal.loc, Gazetteer.loc , USA_AdminPlaces.loc and also got a composite locator USA.loc.  Now I want to enable offline searching in IOS app on vtpk file.  I have included all locators file under IOS app  but when I reference USA.loc file into AGSLocatorTask then searching is not working in IOS app. Is anything which I am missing or how i enable searching to composite locator??

Thanks,

Kamal

0 Kudos
KamalMittal
Deactivated User

Any update on this??

Thanks,

Kamal

0 Kudos
Nicholas-Furness
Esri Regular Contributor

Impossible to say without more information, but I can take a guess. It sounds like you might be creating a desktop locator rather than a Runtime locator, depending on your Python code, but I don't know if you can't open it or you can't call it.

If I were you I would generate an MMPK as I outline above (you can of course use Python to do that). That will include your locator ready for runtime use which you can access off the LocatorTask property of the MMPK. It'll also include the VTPK. A benefit there is that the basemap and locator will packaged together and you don't have to worry about deploying them both.

But really this is beyond the scope of this thread. You should contact support who can walk you through figuring out the issue.

0 Kudos
KamalMittal
Deactivated User

Thanks Nicholas.

Is there any difference between desktop locator and runtime locator?

Another thing is that I have extracted vtpk file from mmpk file. Now I want to generate locator file from mmpk. How do I achieve that? Actually the reason I am asking is that I have already tried and used mmpk file in the IOS app . Now I want to tried same thing through the vtpk file (Searching also).

Thanks,

Kamal

0 Kudos
KamalMittal
Deactivated User

Hi Nicholas,

Any Update on this?

Thanks,

Kamal

0 Kudos
YueWu1
by Esri Regular Contributor
Esri Regular Contributor

@Kamal Mittal

For hosted feature services, you need to use ArcMap to convert all your csv file by right click and choose Display XY Data. Here is a screenshot to illustrate this. For more information, please check our ArcMap doc Adding x,y coordinate data as a layer—Help | ArcGIS for Desktop 

Then you can remove all your original .csv file and publish all the layer to your ArcGIS Online as hosted feature service. In this way, you will have one feature service that contains more than one layer. Here is a screenshot:

 

However for hosted feature service you do not have all the options to manually change prepare the data to use sync capabilities. Based on our doc Prepare data for offline use—Documentation | ArcGIS Enterprise 

For the question about how REST create Replica works, I would recommend you first read our REST API doc first:

Create Replica - ArcGIS REST API 

Then combine with our Runtime iOS SDK doc talks about Sync offline edits—ArcGIS Runtime SDK for iOS | ArcGIS for Developers 

0 Kudos