problems using a 10.2 Local Locator.

4146
8
Jump to solution
11-19-2013 11:18 AM
StevenEnsing
New Contributor III
I'm having issues creating / using a local (offline) address locator with the 10.2 ios sdk release.

Here's what I'm doing:
I've created an address locator using ArcGIS desktop 10.2. I have copied this locator to my app's file folder. I've tried to instantiate a locator using:
self.locator = [AGSLocator locatorWithName:@"LocalAddressLocator" error:&error]


which results in a null locator with the error: "File not found."


Within the iOS SDK help, it is mentioned that you need a .loc, .loc.xml, .lox, AND an .locb file for your local address locator (https://developers.arcgis.com/en/ios/guide/locator-task.htm). The locator I've created does not have an .locb file associated with it. In the 10.2 Desktop help, there is no mention of an .locb file being created. (http://resources.arcgis.com/en/help/main/10.2/index.html#//00250000003v000000). Is this missing .locb file what's causing my problem?
Am I going about doing this the wrong way (creating a locator in desktop, then copying it over to my ios app)? has anyone come across this problem before?

Thanks for any help you can offer,
Steve
0 Kudos
1 Solution

Accepted Solutions
DiveshGoyal
Esri Regular Contributor
Steve,

You need to use ArcGIS Desktop 10.2.1 to publish your existing locators for use with ArcGIS Runtime SDKs. This is when the .locb file is created. Without this file, the SDK won't be able to use the locator. v10.2.1 is not available yet, but you can contact your Esri rep to see if you can get early access to it.

View solution in original post

0 Kudos
8 Replies
DiveshGoyal
Esri Regular Contributor
Steve,

You need to use ArcGIS Desktop 10.2.1 to publish your existing locators for use with ArcGIS Runtime SDKs. This is when the .locb file is created. Without this file, the SDK won't be able to use the locator. v10.2.1 is not available yet, but you can contact your Esri rep to see if you can get early access to it.
0 Kudos
StevenEnsing
New Contributor III
Thanks for the info, Divesh.
Steve
0 Kudos
SatyaSai_P
New Contributor
I am also finding the same problem (.locb extension file) .  As you have said 10.2.1 version will solve but how the sample for offline was with that file, when we downloaded OFFLINE Mobile sample. And, please let us know if there is any other way to generate please....

Also can what it contains like .LOC has contains the general information of the locator
0 Kudos
EdL
by
New Contributor II

Hi

I am also looking for ways to generate this locator Beta file but there isn't any concrete guide to go about creating this.

I am using ArcMap 10.2.2 currently and so far only 3 files is created when i unpack my gcpk file. Using the new ArcGIS Runtime SDK for .Net.

Quote: "You need to use ArcGIS Desktop 10.2.1 to publish your existing locators for use with ArcGIS Runtime SDKs. This is when the .locb file is created. ......"

With the new version, 10.2.2, is there a way to publish location beta file now?

0 Kudos
StevenEnsing
New Contributor III

Hi Ed,

The guide for enabling runtime content when building a locator (via ArcMap) is located here: ArcGIS Help (10.2, 10.2.1, and 10.2.2)

Hope that helps.

Steve

0 Kudos
MikkelHylden
Occasional Contributor

What do I need to do to make this work with 10.3.1?  I've enabled the option for Runtime output, but I still don't get a .locb file created.  I'm using a single field locator - is that a problem in any way?  

0 Kudos
MikkelHylden
Occasional Contributor

A colleague was able to point out that there is an additional step I was missing.  After creating the locator, I had to use the File -> Share As and drill down to share the locator as a runtime output.  

Now I have it running, but it behaves differently in the runtime than it does in ArcMap, in that the search must be more specific in runtime.  I'm not sure why this is the case yet, but looking at possible places where the search sensitivity may have been overridden.  

0 Kudos
EdL
by
New Contributor II

Hi

I got the locator beta to be created.

However I am constantly running into packaging issues when creating content for some locators.

I tried creating runtime content using the Atlanta.gdb data provided by ESRI but nothing is created even though the output states "Content created successfully".

Is the output determined by how or what type of locators is used?

0 Kudos