network dataset and mobile map packages

794
1
01-23-2019 06:52 PM
by Anonymous User
Not applicable

Does anyone know if it's possible to include a network dataset (routing) in a mobile map package and then access it via the MobileMapPackage qml type?

MobileMapPackage QML Type | ArcGIS for Developers 

I think the answer is no, but am looking for confirmation that I haven't missed anything.

The closest I could come to was that a Map object has a property transportationNetworks , which is a list of "TransportationNetworkDataset" objects, which I think are referring to network datasets?

Pro seems to have limited tools yet for creating network datasets and I haven't even been successful in getting a network dataset into a map in Pro, let alone a mobile map package. So I'm trying to save myself from time spent getting that to work if I can't then even use it in the runtime.

cheers,

-Paul

0 Kudos
1 Reply
FrankKish
Esri Contributor

Does anyone know if it's possible to include a network dataset (routing) in a mobile map package and then access it via the MobileMapPackage qml type?

I think the answer is no, but am looking for confirmation that I haven't missed anything.

>>> In ArcGIS Runtime (all SDK's including Qt\QML) you can create a Route Task from a mmpk that has a map with transportation network.
https://developers.arcgis.com/qt/latest/cpp/api-reference/esri-arcgisruntime-routetask.html

The route task allows you to create routes from input stops. The high level step to work with a route task are:

    - Create a route task (from service\transportation network\.geodatabase)
    - Set route parameters (e.g. set stops, plus others as needed)
    - Call solve on route task passing in the route parameters
    - Deal with solve result
 

The closest I could come to was that a Map object has a property transportationNetworks , which is a list of "TransportationNetworkDataset" objects, which I think are referring to network datasets?

>>> When a network dataset is packaged in Pro into mmpk it is converted into what we call a transportation network.  We refer to them by different names because they have a different internally structure, and there are a few features that are supported in a network dataset that is not supported in a transportation network.

 
Pro seems to have limited tools yet for creating network datasets and I haven't even been successful in getting a network dataset into a map in Pro, let alone a mobile map package. So I'm trying to save myself from time spent getting that to work if I can't then even use it in the runtime.

>>> You can add a network dataset to a map in Pro from a existing GDB or SDE, but Pro does not yet allow you to create a network dataset.

To create an mmpk for routing in runtime you need to, in Pro, add the network dataset (e.g. Streets_ND) from a fgdb\sde to a map (plus any other data you want in the mmpk) then convert the map to a mmpk.  The network dataset will be

Then in runtime you need to
- open the mmpk
- load a map from the mmpk
- get the transportation network from the loaded map (map must be have been loaded)

- create the route task the transportation network


General MMPK help
   http://pro.arcgis.com/en/pro-app/help/sharing/overview/mobile-map-package.htm

Gdb with example network dataset data that can be used to packing into a mmpk:
  http://www.arcgis.com/home/item.html?id=d6bd91b2fddc483b8ccbc66942db84cb

Sample at url below uses a routing service to create a route task, to use mmpk you can use the constructor for the task that takes a transportation network (acquired from a loaded map) ... "RouteTask::RouteTask(TransportationNetworkDataset *transportationNetworkDataset, QObject *parent = nullptr)"
     https://developers.arcgis.com/qt/latest/qml/sample-code/sample-qt-findroute.htm

0 Kudos