POST
|
You can either share the data public and post or message me the Url to it, or if you want to keep it secured you could create a group to share the Service Definition to and invite me to it. (andrewstauffer) It will be best to have the data so we can troubleshoot it internally. Thank you, Andrew OK. I will ask the client if we can share the data with just you. Shouldn't be a problem.
... View more
02-04-2014
06:55 AM
|
0
|
0
|
929
|
POST
|
I managed to download the service definition file. It is attached here.
... View more
01-31-2014
07:34 AM
|
0
|
0
|
2015
|
POST
|
@Andrew I have exactly the same situation. I do see the service definitions files in My Contents for each of my attempts. I can't share them however. I tried publishing just now, January 31st 2014. user name: ti@rapidis.com Also: If I try to publish one of the service definition files from My Contents, I get this error: "Object reference not set to an instance of an object" [ATTACH=CONFIG]31023[/ATTACH]
... View more
01-31-2014
07:26 AM
|
0
|
0
|
2015
|
POST
|
Very simple question: Can I call a Geprocessing service from the Geprocessor .net class, in the ESRI.ArcGIS.Geoprocessor.dll assembly, which comes with ArcGIS for Desktop? I think this assembly is called the Geoprocessor managed assembly. Seems like I should be able to answer this question myself, but I simply cannot locate the API reference documentation for this assembly anywhere.
... View more
10-12-2013
04:12 AM
|
0
|
1
|
333
|
POST
|
Figured it out: I got the parameter name slightly wrong (location vs. locations).
... View more
05-10-2013
05:02 AM
|
0
|
0
|
251
|
POST
|
Figured it out: I got the parameter name slightly wrong (location vs. locations).
... View more
05-10-2013
04:59 AM
|
0
|
0
|
758
|
POST
|
My problem is definitely in the client code and not in the service. i found an Esri sample GP service using ArcGIS Server 10.1, and its REST definition for input features looks excactly like mine. It is here: http://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/GPServer/Generate%20Service%20Areas And if I adapt my code slightly to call this service rather than my own, I get an equivalent error: StatusUpdated: esriJobFailed Submitted. Executing... ERROR 030117: Insufficient input. Need at least one facility and one break value. Failed to execute (Generate Service Areas). Failed to execute (GenerateServiceAreas). Failed to execute (Generate Service Areas). Failed. So it probably did not get any facilities, which were the features. I will try once more to compare what I do to the code posted by Mike in the other thread: http://forums.arcgis.com/threads/83867-Sample-for-calling-a-GP-Service-Task-with-with-multiple-features
... View more
05-09-2013
08:44 AM
|
0
|
0
|
758
|
POST
|
Using FeatureSet in the model doesn't make any difference. The REST service looks exactly the same and the application behaves the same.
... View more
05-09-2013
05:25 AM
|
0
|
0
|
758
|
POST
|
Matt: Thanks for helping out. Yes. It's a Feature Class. I'll try Feature Set, but it is my understanding, that the requirement to use the special data types designed for publication on Server is no longer there in 10.1. The publication wizard should transform the data types for us. See this Quoting: Differences between 10.0 and 10.1 If you authored geoprocessing services in 10.0, there were specific ModelBuilder techniques you used to author services, noted below. You no longer need to use these techniques in 10.1. Legacy: Prior to 10.1, geoprocessing tasks were required to have Feature Set data types to input features in geoprocessing tasks, and Record Sets to input tables. You do not need to use feature sets or record sets for services at 10.1; you need only specify an Input mode of User defined value for an input feature or table parameter when editing the task in the Service Editor. If your model (or script) currently uses a Feature Set or Record Set, you don't have to change it; it will publish as is. Thomas
... View more
05-09-2013
03:38 AM
|
0
|
0
|
758
|
POST
|
Hmm. Looking at it now, isn't it suspicious that it says "Features: None." for the input parameter in the fields list? I don't know why it would say that. The input parameter in the model I published has the data type "Feature Class". This is what I get back from the service's StatusUpdated event (running with 'informative' messaging): Submitted. Executing... Executing (Buf3): Buf3 "Feature Set" "Record Set" "Record Set" "Record Set" c:\arcgisserver\directories\arcgisjobs\buf3_gpserver\jef2879d669e649a6b6be2b1e65e5f2e3\scratch\scratch.gdb\locations_Buffer1 Start Time: Wed May 08 17:06:52 2013 Executing (Buf3): Buf3 "Feature Set" "Record Set" "Record Set" "Record Set" c:\arcgisserver\directories\arcgisjobs\buf3_gpserver\jef2879d669e649a6b6be2b1e65e5f2e3\scratch\scratch.gdb\locations_Buffer1 Start Time: Wed May 08 17:06:52 2013 Executing (Get Count): GetCount "Feature Set" Start Time: Wed May 08 17:06:52 2013 Row Count = 0 Succeeded at Wed May 08 17:06:52 2013 (Elapsed Time: 0,00 seconds) Executing (Buffer): Buffer "Feature Set" c:\arcgisserver\directories\arcgisjobs\buf3_gpserver\jef2879d669e649a6b6be2b1e65e5f2e3\scratch\scratch.gdb\locations_Buffer1 "400 Meters" FULL ROUND NONE # Start Time: Wed May 08 17:06:52 2013 The process did not execute because the precondition is false. Succeeded at Wed May 08 17:06:52 2013 (Elapsed Time: 0,00 seconds) Succeeded at Wed May 08 17:06:52 2013 (Elapsed Time: 0,27 seconds) Succeeded at Wed May 08 17:06:52 2013 (Elapsed Time: 0,27 seconds) Invalid return value: c:\arcgisserver\directories\arcgisjobs\buf3_gpserver\jef2879d669e649a6b6be2b1e65e5f2e3\scratch\scratch.gdb\locations_Buffer1 Failed. The preconditions is just to have GetCount execute first. Returning 0 causes the "false" value and skipping buffer entirely.
... View more
05-08-2013
07:10 AM
|
0
|
0
|
758
|
POST
|
See REST info below. I'll try the CopyFeatures trick to see if I can get a look at them that way. Don't have much hope though, since GetCount reports "0 records". Thomas Task: Buf3 Display Name: Buf3 Description: (null) Category: Help URL: http://server:6080/arcgis/rest/directories/arcgisoutput/Buf3_GPServer/Buf3/Buf3.htm Execution Type: esriExecutionTypeAsynchronous Parameters: Parameter: locations Data Type: GPFeatureRecordSetLayer Display Name locations Description: l Direction: esriGPParameterDirectionInput Default Value: Geometry Type: esriGeometryPoint HasZ: false HasM: false Spatial Reference: 25832 (25832) Fields: OBJECTID ( type: esriFieldTypeOID , alias: OBJECTID ) ID ( type: esriFieldTypeInteger , alias: ID ) Description ( type: esriFieldTypeString , alias: Description , length: 255 ) Features: None. Parameter Type: esriGPParameterTypeRequired Category: ////////////// 3 more input parameters which work fine ////////////// Parameter: locations_Buffer1 Data Type: GPFeatureRecordSetLayer Display Name locations_Buffer1 Description: lb Direction: esriGPParameterDirectionOutput Default Value: Geometry Type: esriGeometryPolygon HasZ: false HasM: false Spatial Reference: 25832 (25832) Fields: OBJECTID ( type: esriFieldTypeOID , alias: OBJECTID ) ID ( type: esriFieldTypeInteger , alias: ID ) Description ( type: esriFieldTypeString , alias: Description , length: 255 ) BUFF_DIST ( type: esriFieldTypeDouble , alias: BUFF_DIST ) Shape_Length ( type: esriFieldTypeDouble , alias: Shape_Length ) Shape_Area ( type: esriFieldTypeDouble , alias: Shape_Area ) Features: None. Parameter Type: esriGPParameterTypeRequired Category: Supported Operations: Submit Job
... View more
05-08-2013
06:54 AM
|
0
|
0
|
758
|
POST
|
Mike, Thanks for a quick answer. As far as I can tell your code is equivalent to what I do. Can you help me figure out why the GP Task I have published cannot "see" the features I load in the client? The task works fine when I call it fra ArcGIS Desktop. I use the GetCount GP tool at part of the model, and it reports back "Row Count = 0" for the features. On the other hand, the Task aso has som parameters, which are not features, but just table data. They work find and I use largely the same code for loading them. Any thought? I am quite stuck and do not know how to track this down.
... View more
05-07-2013
12:05 PM
|
0
|
0
|
251
|
POST
|
[Apologies for re-posting, but I wanted to change the title as it was misleading, and the forum wouldn't let me change anything.] I would like to call a Geoprocessing Service from the WPF SDK, but I am having problems. The model I published has several inputs - most of the non-spatial table data and those work fine, but in addition it has a feature layer / class, for which I cannot get data into the service. I was hoping that someone could point me to a sample that does this. There are plenty of samples, but they all seem to load just one single feature into the service. This is unfortunate, since the API has a specific "shorthand" for this single-feature-case, whereas the more general case is not shown. I can see that the features are actually being transmitted to the server, since I have found them in JSON form in a file called definitions.dat under the server jobs folder. But I still think I must be doing something wrong since the model that is running on the server "sees" an empty input (as evidenced by my use of the GetCount Tool). Here is an abbreviated version of my code: m_gp = new Geoprocessor("http://server:6080/arcgis/rest/services/Name/GPServer/Name"); List<GPParameter> parameters = new List<GPParameter>(); List<Graphic> graphics = new List<Graphic>(); while(notDone) { Graphic graphic = new Graphic(); IDictionary<string, object> record = graphic.Attributes; point = new MapPoint(); point.X = x_value; point.Y = y_value; record.Add("field1","value1"); point.SpatialReference = new SpatialReference(25832); graphic.Geometry = point; } graphics.Add(graphic); GPParameter prm; FeatureSet fSet = new FeatureSet(graphics); fSet.SpatialReference = new SpatialReference(25832); prm = new GPFeatureRecordSetLayer(recordSetName, fSet); parameters.Add(prm) // add more parameters m_gp.SubmitJobAsync(parameters); Help please! I am completely stuck.
... View more
05-06-2013
08:41 AM
|
0
|
3
|
2066
|
POST
|
I would like to call a Geoprocessing Service from the WPF SDK, but I am having problems. The model I published has several inputs - most of the non-spatial table data and those Work fine, but in addition there is a feature layer / class, for which I cannot get data into the service. i was hoping that someone could point me to a sample that does this. There are plenty of samples, but they all seem to load just one single feature into the service. This is unfortunate, since the API has a specific "shorthand" for this, and so the more general case is not shown. I can see that the features are actually being transmitted to the server, since I have found them in JSON form in a file called definitions.dat under the server jobs folder. But I still think I must be doing something wrong since the model that is running on the server "sees" an empty input (as evidenced by my use of the GetCount Tool). Here is an abbreviated version of my code: m_gp = new Geoprocessor("http://server:6080/arcgis/rest/services/Name/GPServer/Name"); List<GPParameter> parameters = new List<GPParameter>(); List<Graphic> graphics = new List<Graphic>(); while(notDone) { Graphic graphic = new Graphic(); IDictionary<string, object> record = graphic.Attributes; point = new MapPoint(); point.X = x_value; point.Y = y_value; record.Add("field1","value1"); point.SpatialReference = new SpatialReference(25832); graphic.Geometry = point; } graphics.Add(graphic); GPParameter prm; FeatureSet fSet = new FeatureSet(graphics); fSet.SpatialReference = new SpatialReference(25832); prm = new GPFeatureRecordSetLayer(recordSetName, fSet); parameters.Add(prm) // add more parameters m_gp.SubmitJobAsync(parameters);
... View more
05-01-2013
01:51 PM
|
0
|
8
|
3999
|
POST
|
sdelayer -o feature_info on the view gives this: [lots of data...] Total rows examined: 169169 Total invalid shapes: 0 sdelayer -o feature_info on the feature class underlying the view gives this: [lots of data...] Total rows examined: 176444 Total invalid shapes: 0 not really sure what to do with sdequery or how to access it. Is there a way to get sdelyer -o register to tell us specifically which row or rows it is not happy with?
... View more
09-24-2012
11:44 AM
|
0
|
0
|
1866
|
Title | Kudos | Posted |
---|---|---|
1 | 12-06-2018 08:32 AM |
Online Status |
Offline
|
Date Last Visited |
12-06-2023
02:58 PM
|