Esri / elevation-gp-python

ArcGIS elevation analysis tool that allows you to set up an in-house viewshed geoprocessing service.
Apache License 2.0
16 stars 7 forks source link

Refractivity coefficient: The input is not within the defined domain #3

Open LuisRguezEsriSpain opened 2 years ago

LuisRguezEsriSpain commented 2 years ago

Hi,

I've followed the steps in "Setting up the viewshed geoprocessing service (ArcGIS Pro).pdf".

But when I excute "ElevationTools.pyt" I get these errors:

Start Time: lunes, 18 de julio de 2022 19:56:07
Maximum distance: 15000 meters, DEM resolution: 90 meters, Mosaic Layer: C:\ElevationPro\Data\Elevation.gdb\dem90m, Observer offset: 1.75, Surface offset: 0.0.
Failed to execute. Parameters are not valid.
[ERROR 000864:](javascript:void(0);) Refractivity coefficient: The input is not within the defined domain.
[ERROR 000892:](javascript:void(0);) The numeric value is outside of the valid range.
Failed to execute (Visibility).
File "<string>", line 729, in execute
File "<string>", line 319, in executeVisibility
File "D:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in <lambda>
    return lambda *args: val(*gp_fixargs(args, True))
arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000864: Refractivity coefficient: The input is not within the defined domain.
ERROR 000892: The numeric value is outside of the valid range.
Failed to execute (Visibility).
Failed to execute (Viewshed).
Failed at lunes, 18 de julio de 2022 19:56:13 (Elapsed Time: 5,48 seconds)

RefractivityCoefficientError

In addition to the previous error. I have this questions, Is it necessary an ArcGIS Image Server license to publish the viewshed script tool?

LuisRguezEsriSpain commented 2 years ago

Hi,

I've created a new ArcGIS PRO project. When I execute "ElevationTools.pyt", it works properly, but then I run the tool again and it fails. I have to close and open the ArcGIS PRO project so that the tool works.

RefractivityCoefficientError2

On the other hand, when I share the correct execution of the tool as Web Tool, I get this error:

Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:26:43 Status: InProgress  StatusMessage: Successfully wrote sharing info file 
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:26:43 Status: InProgress  StatusMessage: Loading manifest 
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:26:43 Status: InProgress  StatusMessage: Creating thumbnail from map  
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:26:43 Status: Pending StatusMessage: Sharing process started  
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:26:44 Status: Pending StatusMessage: Sharing process started  
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:26:48 Status: InProgress  StatusMessage: Sharing process started  
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:26:48 Status: InProgress  StatusMessage: Sharing process started  
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:26:49 Status: InProgress  StatusMessage: Loading manifest 
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:26:49 Status: InProgress  StatusMessage: Creating thumbnail from map  
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:26:50 Status: InProgress  StatusMessage: Publishing process started   
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:26:50 Status: InProgress  StatusMessage: Preparing data references and staging web tool   
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:26:59 Status: InProgress  StatusMessage: Using ArcGIS Version 12.8 for staging (Source for version: GP Staging Parameters)    
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:26:59 Status: InProgress  StatusMessage: Stage Tool initialized   
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:27:00 Status: InProgress  StatusMessage: Consolidate data 
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:27:01 Status: InProgress  StatusMessage: Staging GP service   
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:28:06 Status: Failed  ErrorMessage: Consolidation failed  
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:28:07 Status: Failed  ErrorMessage: ERROR 001707: Data cannot be opened: Shape File(C:\ViewshedUtil\elevation-gp-python-master\Users\xugu4526\Documents\ArcGIS\scratch) Viewshedpoly.
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:28:07 Status: Failed  ErrorMessage: Failed to execute (StageService). 
Elevation       65  WebTool ArcGIS Enterprise   https://persplataforma1081.esrilab.es/server    admin   2022-07-19 09:28:09 Status: Failed  ErrorMessage: Staging failed    

Why does the staging step try to open "C:\ViewshedUtil\elevation-gp-python-master\Users\xugu4526\Documents\ArcGIS\scratch" shape file? In "ElevationTools.pyt" there isn't any reference to this shape file.

LuisRguezEsriSpain commented 2 years ago

Hi,

By using the last versión of "ElevationTools.pyt" I can publish this tool as a Web Tool.

Thank you Xuguang