AnsweredAssumed Answered

LocalRouteTask geodatabase format, documentation/how?

Question asked by pylgrym on Mar 14, 2016
Latest reply on May 9, 2016 by pylgrym

I am trying to set up offline streeet routing in ArcGisRuntime for Qt, Using LocalRouteTask.

However, I cannot find adequate documentation for how to obtain/configure an appropriate database.

The info I've found, just refers to two string parameters, with no further details. The main things I've been able to guess, is from examining/reverse engineering the demo "RuntimeSanFrancisco.geodatabase" files.


What I've learned so far:

 

- There are 4 "geodatabase" formats. (One for each format name would have been sufficient for me.)

Until that page is moved, a link here: https://developers.arcgis.com/qt/cpp/guide/supported-geodatabase-formats.htm

describing the 4 formats.
- the 'RuntimeSanFrancisco' is format 1 - .geodatabase-SQLite.

 

Using QGis, I can see the SanFrancisco offline-routing example contains

ALL the following data - I don't know how much of it is required for a street routing example.

  I notice the N_1_* tables, and the 3 Streets* tables (relevant because the named network is called Streets_ND)

and the ND_27* tables, and Streets_ND_Junctions.

(however, I note that the geometry-type is different compared to the next picture I show.)

SF.png


We had an ESRI partner prepare a 'geodatabase' data set for our client for offline routing, and they came up with

a ".gdb" folder, which I, based on the link above, guess to be a socalled "file geodatabase" type (it's called 'file', because it's stored in a directory, as opposed to the SQLite variant, which is stored in a file. In case you wonder.)

 

When I open that 'file geodatabase' in QGis, I get this:

fileGeo.png

Again we see names 'Streets', 'Streets_ND_Junctions', and 3 ND_XXX* tables.

 

However, trying to load this in our ArcGis Runtime application, just leads to crashes giving us no relevant info.

(executing the LocalRouteTask constructor gives a crash.)

 

The only documentation I find is this:

https developers.arcgis.com/qt/cpp/guide/find-a-route.htm

Find a route—ArcGIS Runtime SDK for Qt | ArcGIS for Developers

from which I don't seem to find any info about how to obtain/build routing geodatabases?

 

QUESTION: Anybody got any hints for how to figure this out / how one is supposed to figure this out?

The ESRI partners who built the 'geodatabase' are nice people, but it appears to me, they have access to the same lack of documentation as I find..?  How does one figure out how to build a usable routing-network data set for ArcGisRuntime LocalRouteTasks, and is it possible to diagnose it with other things than mute crashes?

 

I spent some time googling this, but only found people asking similar questions in threads around the web, that never attracted any replies :-(

 

Detail question: I would like to know, if LocalRouteTask only works with the SQLite variant? From the linked 'supported' page, it suggests that "geodatabase file" would work too, but given the very little doc-details on LocalRouteTask itself, and my crashes, I'm wondering..? IE SQLite is the thing I've seen it work with..

 

Thank you for any help or advice you can offer on this.

 

URLs:

http developers.arcgis.com/qt/cpp/guide/supported-geodatabase-formats.htm

Outcomes