POST
|
No matter what I've tried, I cannot get progress messages from a python script tool to fire any of the IGeoProcessorEvents3 "onProgress" handlers. Is that even possible I wonder? The progress bar does show up if I run the tool in the foreground from ArcCatalog, which proves the python tool is issuing progress notifications. But progress events don't fire when I run the toolbox tool via Geoprocessor.execute(tool, parms). Other handlers fire - preToolExecute, onProcessMessages, and postToolExecute - but nothing for onProgressMessage or onProgressPercentage. Any ideas? (ArcGIS 10.0)
... View more
04-05-2014
04:35 AM
|
0
|
1
|
2504
|
POST
|
Can someone explain this phrase to me, in the context of running inside a servlet? From the ArcGIS "How to run a geoprocessing tool in the background": "Both executeASync() methods submit tools to a geoprocessing queue that exists in the current process. At this time, the tools IGeoProcessorResult object that is returned when the executeASync() method is called as a status attribute with the value esriJobStatus.esriJobWaiting. A tool on the geoprocessing queue will not execute until the method that added the tool to the queue has been fully processed." I am questioning this because my servlet code calls executeAsync and the job goes to esriJobWaiting and that's it - no further movement. So I'm wondering about "will not execute until the method that added the tool to the queue has been fully processed." Fully processed? What does that mean in the context of a tomcat servlet? Is there something else I have to do to release the job?
... View more
03-29-2014
02:22 AM
|
0
|
0
|
454
|
POST
|
I have an app built with the eclipse 10.1.1 java runtime sdk. The sdk client components are used to access an arcgis server. I use the Geoprocessor and GPTaskInfo objects, etc. I need to generate a stand-alone war file. To this end, I have generated a deployment folder with "Client Core" and "Local Server" capabilities (no selected deployment options) and have added it to the application, in the Libraries section. I have an ArcGISRuntime.setLicense() call in my code with a test license. To test, I renamed the ARCGISRUNTIMEJAVASDK10_1_1 environment variable and ran the war on the development box (I need to, for other reasons). The first call through the Geoprocessor object to the server results in this: C:\apache-tomcat-7.0.26\bin Failed to read environment variable ARCGISRUNTIMESDKJAVA_10_1_1 at com.esri.runtime.ArcGISRuntime.getInstallDirectory(Unknown Source) at com.esri.runtime.ArcGISRuntime.a(Unknown Source) at com.esri.runtime.ArcGISRuntime.getClientLibPath(Unknown Source) at com.esri.runtime.ArcGISRuntime.initialize(Unknown Source) at com.esri.core.tasks.ags.geoprocessing.Geoprocessor.<clinit>(Unknown Source) Apparently the app is still looking for an installed runtime sdk. Does this mean - I am not picking up the deployment folder dlls, etc? - I need to remove some runtime sdk artifact from the build? - Or what? If the eclipse project/build needs to be modified, please provide details. Thanks.
... View more
03-27-2014
12:53 PM
|
0
|
3
|
3420
|
POST
|
For these tests I manually delete "Geocoding_Result_Model_XYT" before running. It definitely isn't there to start. I should also note that in the results for Model Builder above I am trying to run the entire model but it terminates after XYToLine.
... View more
09-13-2013
10:29 AM
|
0
|
0
|
476
|
POST
|
Interactive I get: Result Messages: Executing: XYToLine \\somehost\GIS\geocode_test.gdb\Geocoding_Result_Model \\somehost\GIS\geocode_test.gdb\Geocoding_Result_Model_XYT LONGITUDE LATITUDE POINT_X POINT_Y GEODESIC scrssn_char "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];-400 -400 1111948722.22222;-100000 10000;-100000 10000;8.98315284119521E-09;0.001;0.001;IsHighPrecision" Start Time: Fri Sep 13 13:02:03 2013 Succeeded at Fri Sep 13 13:02:04 2013 (Elapsed Time: 1.00 seconds) In Model Builder I get: Executing (XY To Line): XYToLine \\somehost\GIS\geocode_test.gdb\Geocoding_Result_Model \\somehost\GIS\geocode_test.gdb\Geocoding_Result_Model_XYT LONGITUDE LATITUDE POINT_X POINT_Y GEODESIC scrssn_char "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];-400 -400 1111948722.22222;-100000 10000;-100000 10000;8.98315284119521E-09;0.001;0.001;IsHighPrecision" Start Time: Fri Sep 13 12:29:21 2013 Succeeded at Fri Sep 13 12:29:22 2013 (Elapsed Time: 1.00 seconds) In python26 I get: ... setup ... >>> # Process: XY To Line ... arcpy.XYToLine_management(Geocoding_Result_Model, Geocoding_Result_Model_XYT , "LONGITUDE", "LATITUDE", "POINT_X", "POINT_Y", "GEODESIC", "scrssn_char", "GEO GCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.25722356 3]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];-400 -400 1111948 722.22222;-100000 10000;-100000 10000;8.98315284119521E-09;0.001;0.001;IsHighPre cision") Traceback (most recent call last): File "<stdin>", line 2, in <module> File "D:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", li ne 2542, in XYToLine raise e arcgisscripting.ExecuteError: ERROR 000582: Error occurred during execution. ... rest of script... However, it looks like the command executed fine, and the python script continues to execute "Add Field" and "Calculate Field", as it should, with valid results. (I have obfuscated the real path to the host in the text.) So what's the error being reported here? Looks like an error that's not an error...
... View more
09-13-2013
10:16 AM
|
0
|
0
|
476
|
POST
|
When I attempt to tie the output of "XY to Line" to the next step, "Add Field", model builder simply stops after "XY to Line", thinking it's all done. It does not execute subsequent steps. Is there something wrong with doing this? It seems to work manually... [ATTACH=CONFIG]27438[/ATTACH] This is excerpted from a larger flow. Two methods of geocoding produce two sets of X,Y points which I make into lines, then get the distance in miles for visualization and comparison purposes.
... View more
09-13-2013
07:22 AM
|
0
|
6
|
2369
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|