Configuring a network utility service

Mit der Business Analyst-Lizenz verfügbar.

The Business Analyst web app leverages network utility services to provide drive time and walk time study areas for reports and infographics. These services can be easily configured in Portal for ArcGIS to use cloud based services from ArcGIS Online or they can published to ArcGIS Server using the Business Analyst Streets data.

Configure ArcGIS Online network utility services

  1. Sign in to the portal website as an Administrator of your organization and click through to My Organization > Edit Settings > ArcGIS Online.
  2. Select the Network service.
  3. Enter the credentials for the ArcGIS Online account to be used for credit consumption.
  4. Click Configure.
Configuring Network Services in

The utility services you select will be configured with the portal. An item is created in the portal that stores the ArcGIS Online account credentials with it. Each item is shared with the portal's organizational members at the time it is created. You can view the items or edit their sharing properties in My Content.

Publish Network Utility Services to ArcGIS Enterprise

The Publish Routing Services utility allows you to publish directions, routing, and logistics services based on a network dataset to your ArcGIS Server. These services can be used to perform route, closest facility, service area, location-allocation, origin destination cost matrix, or vehicle routing problem analyses on transportation networks. If your ArcGIS Server is federated with Portal for ArcGIS, the services are configured as utility services with your portal. Once published, the services can be used with ArcGIS Desktop applications such as ArcGIS Pro and ArcMap, or in the Map Viewer application available with ArcGIS Enterprise to get directions and perform analysis. The services are similar to directions and routing services available with ArcGIS Online, but are based on your own network dataset.

Lizenz:

To use this utility, your ArcGIS Server site needs to have an Erweiterung "ArcGIS Network Analyst" license.

Data requirements

You can use this utility with a network dataset that is available as part of StreetMap Premium for ArcGIS or with your own network dataset. Before running the utility, the network dataset should be copied (in the same directory path) to all the machines participating in your GIS Server site.

Tipp:

While you can keep the network dataset in a shared location that is accessible to all of the machines in your GIS Server site, it is recommended to copy the network dataset locally on each machine for best performance when running the services.

If your StreetMap Premium data is licensed, you need to install the appropriate data license on each machine before running this utility. Follow the instructions for installing the data license on Linux or Windows.

The utility supports network datasets from StreetMap Premium 2015 Release 1 or later.

Ältere Versionen:

Older versions of StreetMap Premium network datasets (including the network datasets in SDC format) are not supported.

If you are using your own network dataset, it must satisfy the following conditions:

  • Has at least one time-based and one distance-based cost attribute
  • Defines at least one travel mode
  • Stored in a file geodatabase
  • Supports directions

Parameters

The following parameters are available when running the publishroutingservices.py script:

ParameterDetails

-u

Der Benutzername für einen Benutzer mit Publisher- oder Administratorberechtigungen in der ArcGIS Server-Site. Wenn die Site mit einem Portal verbunden ist, muss der Benutzer ein Portalbenutzer sein, und er kann über eine Administratorberechtigung oder Publisher-Berechtigung verfügen, die das Veröffentlichen von Web-Werkzeugen und serverbasierten Layern zulässt. Wenn die Site nicht verbunden ist, muss der Benutzer über Administratorberechtigungen verfügen. Wenn die Site mit Authentifizierung auf Webebene konfiguriert ist, geben Sie einen integrierten Benutzer an, z. B. das primäre Site-Administratorkonto oder das initiale Administratorkonto im Portal.

-p

The password of the user who was specified with the -u parameter.

-s

Der vollständig qualifizierte Domänenname des Computers, auf dem ArcGIS Server ausgeführt wird, z. B. gisserver.domain.com, oder die lokale URL der ArcGIS Server-Site im Format https://gisserver.domain.com:6443/arcgis.

-P

Der vollständig qualifizierte Domänenname des Computers, auf dem die Instanz von Portal, in die die ArcGIS Server-Site eingebunden ist, installiert ist, z. B. gisserver.domain.com. Der Wert kann auch eine lokale URL des Portals im Format https://gisportal.domain.com:7443/arcgis sein. Ein Wert für diese Option ist nur erforderlich, wenn die Instanz von ArcGIS Server, die die Routing-Services hostet, mit dem Portal verbunden ist.

-n

Der vollständige Pfad zum Netzwerk-Dataset. Der Pfad sollte zusätzlich zum Pfad zur File-Geodatabase auch den Namen des Netzwerk-Datasets und den Namen des Feature-Datasets enthalten, in dem sich das Netzwerk-Dataset befindet. Ein Wert für diese Option kann beispielsweise unter Windows c:\data\Streets.gdb\Routing\Routing_ND und unter Linux /data/Streets.gdb/Routing/Routing_ND lauten. Dabei ist Streets.gdb die File-Geodatabase, die über das Netzwerk-Dataset Routing_ND im Feature-Dataset Routing verfügt.

-o

Der Pfad zu einem Ordner, in dem das Dienstprogramm die Service-Definitionsdateien für die Services und eine Protokolldatei mit dem Namen publishroutingservices.log erstellt. Die Protokolldatei enthält die Informationen über die Ausführung sowie ggf. aufgetretene Fehler.

-h

Prints help for the utility.

Example usage

The ArcGIS Server install includes a script that will help to publish a network service which can be used for routing by the Business Analyst Server service. This script is installed to <ArcGIS Server Install Location>/ArcGIS/Server/Tools/PublishRoutingServices and is named publishroutingservices.py.

In this example, the user has installed the Business Analyst data to the E drive and they want to use the network that is provided with the Business Analyst 2020 data:

publishroutingservices.py -s ServerMachine.domain.com -P PortalMachine.domain.com -u PortalAdminUser -p PortalAdminPassword -n "C:\ArcGIS\Business Analyst\US_2020_server\Data\Streets Data\NorthAmerica.gdb\Routing\Routing_ND" -o E:\RoutingSDs