Hi Everyone
I'm in the process of transitioning from ArcEngine to Runtime .Net and I have reviewed the sample code for online and offline GeoCoding; however, the one thing I'm uncertain on is how to create the "*.loc" file? In the code example, a locallocator task is created ( _locatorTask = await Task.Run<LocalLocatorTask>(() => new LocalLocatorTask(LOCATOR_PATH));) by a path to the loc file and the examples always have the SanFran...loc file present.
I need to create a program that will allow our clients to use their street layer to create this file and in the past the loc file was created inside a FeatureDataset within a FileGeoData base. I have seen comments on taking an online geocoder and syncing to offline mode, yet there are no examples on how to take a street layer (possibly ShapeFile) and generate a local loc file.
If someone can provide assistance on creating a loc file (through code) I would appreciate it.
Jim
Solved! Go to Solution.
Hi,
To create a Locator for use with the ArcGIS Runtime you will need to use the ArcGIS Desktop (i.e. ArcMap / ArcCatalog) tool "Create Runtime Content". This can either be done via the ArcMap GUI dialog - File > Share As > Runtime Content or by running the Geoprocessing tool.
For more information see the following links:
ArcGIS Help (10.2, 10.2.1, and 10.2.2)
ArcGIS Help (10.2, 10.2.1, and 10.2.2)
Currently it's not possible to build a Runtime app to do this, although we are investigating supporting that workflow.
Cheers
Mike
Hi,
To create a Locator for use with the ArcGIS Runtime you will need to use the ArcGIS Desktop (i.e. ArcMap / ArcCatalog) tool "Create Runtime Content". This can either be done via the ArcMap GUI dialog - File > Share As > Runtime Content or by running the Geoprocessing tool.
For more information see the following links:
ArcGIS Help (10.2, 10.2.1, and 10.2.2)
ArcGIS Help (10.2, 10.2.1, and 10.2.2)
Currently it's not possible to build a Runtime app to do this, although we are investigating supporting that workflow.
Cheers
Mike