Disponible avec une licence Business Analyst.
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 are similar to the routing services available with ArcGIS Online, but are published on-premises based on your own street network dataset.
Once published, the services can be used with Business Analyst Enterprise for creating study areas based on driving and walking times and distances.
Licence :
To use this utility, your ArcGIS Server site needs to have an Extension ArcGIS Network Analyst license.
Data requirements
A street network dataset for the USA is provided for Business Analyst Enterprise users in file geodatabase format (. gdb file). Before using the .gdb file, you must install the Business Analyst data license (. sdlic ), which is emailed at the time of purchase or data update. You can review the license information in ArcGIS Pro to verify that the *. sdlic license file is enabled. Once enabled, the publish routing services utility can be used to publish services from the .gdb file.
If the publisher machine and the Serveur d'enrichissement géographique machine are the same (If ArcGIS Pro is installed on the server), you can authorize the data with Pro. If ArcGIS Pro is not installed on the server, you can use the DataLicInstall utility:
- Open a Windows Command Prompt instance (cmd), as an administrator, on a machine with ArcGIS Server installed.
- Right click on CMD > run as an administrator.
- Change directory to the ArcGIS Server Program Files bin directory.
The command line appears as follows:cd C:\Program Files\ArcGIS\Server\bin
C:\Program Files\ArcGIS\Server\bin>
- Type in the following:
DataLicInstall.exe C:\FolderName\<nameOfLicenseFile>.sdlic
- Press Enter to install the license.
- After the license file successfully installs, restart the ArcGIS Server Windows service for the changes to take effect.
Remarque :
All data needed for street address geocoding and network analysis are included with the 2019 US Data for Business Analyst on My Esri.
StreetMap Premium for ArcGIS product downloads for Pro and Enterprise may appear in your My Esri list. These files are not needed and should not be downloaded. Please follow the steps for downloading the street data below.
Downloading the street network data
- On the My Esri site, click My Organizations then click Downloads.
- Verify that you are in the Products section. In the Quick Search text box, enter Business Analyst or Business.
- Look for ArcGIS Business Analyst Enterprise with 2019 U.S. Data and ensure the version is 10.7.1. Click View Downloads.
There will be two downloads for the street data, both will need to be downloaded on a folder to your local drive.
- Click the Download Components tab then click Data and Content to expand the list of files.
- Locate #1 ArcGIS Business Analyst Enterprise 2019 Street Data (U.S.A) and click Download.
- In the Esri Download Manager dialog, click Click to download your file now.
- Locate #2 ArcGIS Business Analyst Enterprise 2019 Street Data (U.S.A) and click Download.
- The Destination Folder for Files dialog will appear. Keep the default location or click Browse to choose a different location.
Astuce:
While you can keep the network dataset in a shared location that is accessible to all 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.The appropriate data license must be installed on the machine before running this utility. Follow the instructions for installing the data license on Windows.
Parameters
The following parameters are available when running the publishroutingservices.py script:
Paramètre | Détails |
---|---|
-u | Nom d’utilisateur d’un utilisateur doté de privilèges d’éditeur ou d’administrateur sur le site ArcGIS Server. Si le site est fédéré avec un portail, l’utilisateur doit être un utilisateur du portail et peut disposer d’un privilège d’administrateur ou d’un privilège d’éditeur permettant de publier des outils web et des couches basées sur un serveur. Si le site n’est pas fédéré, l’utilisateur doit disposer de privilèges d’administrateur. Si votre site est configuré avec l’authentification au niveau du web, spécifiez un utilisateur intégré, tel que le compte d’administrateur de site principal ou le compte d’administrateur initial sur votre portail. |
-p | The password of the user who was specified with the -u parameter. |
-s | Le nom de domaine complet de la machine exécutant ArcGIS Server, tel que gisserver.domain.com, ou l’URL locale de votre site ArcGIS Server au format https://gisserver.domain.com:6443/arcgis. |
-P | Le nom de domaine complet de la machine, tel que gisportal.domain.com, où Portal, avec lequel votre site ArcGIS Server est fédéré, est installé. La valeur peut également être une URL locale du portail au format https://gisportal.domain.com:7443/arcgis Une valeur n’est requise pour cette option que si le serveur ArcGIS allant héberger les services de calcul d’itinéraire est fédéré avec le portail. |
-n | Le chemin d’accès complet au jeu de données réseau. Outre le chemin d’accès à la géodatabase fichier, le chemin doit également inclure le nom du jeu de données réseau et le nom du jeu de données d’entité contenant le jeu de données réseau. Par exemple, cette option peut avoir pour valeur c:\data\Rues.gdb\Tournée\Tournée_ND sous Windows et /data/Rues.gdb\Tournée\Tournée_ND sous Linux, Rues.gdb étant la géodatabase fichier qui comporte un jeu de données réseau nommé Tournée_ND dans un jeu de données d’entité nommé Tournée. |
-o | Chemin d’accès à un dossier où l’utilitaire créera les fichiers de définition de service des services et un fichier journal nommé publishroutingservices.log et incluant les détails sur l’exécution et toute erreur pouvant survenir. |
-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 streets data copied locally to the C drive. The staging folder for the service definition files is RoutingSDs, it must be created prior to running the utility.
publishroutingservices.py -s ServerMachine.domain.com -P PortalMachine.domain.com -u PortalAdminUser -p PortalAdminPassword -n "Streets Data\NorthAmerica.gdb\Routing\Routing_ND" -o C:\RoutingSDs
Configuring a network utility services from ArcGIS Online
You have the option to configure your portal to use utility services from ArcGIS Online instead of publishing them to your own server. This has the added benefit of providing street network coverage outside the United States. If you would like to use online network services provided by Esri, you must have an ArcGIS Online organizational account. The account must have credits associated with it and the correct permissions to use the utility services.
The ArcGIS Online network services provide coverage for several countries or areas and can be configured in the portal following the steps below.
- Sign in to the portal website as a member of the default administrator role in your organization.
- At the top of the site, click Organization and click the Settings tab.
- Click ArcGIS Online on the left side of the page.
- Select Network.
- Enter the credentials for the ArcGIS Online account that is to be used for the utility services.
- Click Configure.
Next step
Vous avez un commentaire à formuler concernant cette rubrique ?