Extract Data Widget does not work

3304
8
02-15-2011 11:04 AM
GIS_TechEngineering
New Contributor III
Hi all,
  When I try to use the Extract Data widget, I get a zipped file that has the necessary .dwg file but  the drawing is empty when I open it in AutoCAD. Same thing happens if I extract to an ESRI shapefile. Does this widget require ArcGIS Server 10? I'm currently using 9.3.1.
Any help would be appreciated.
Billy
Tags (2)
0 Kudos
8 Replies
JonFisher
New Contributor III
Yes, ArcGIS Server 10 is required.
0 Kudos
BjornSvensson
Esri Regular Contributor
Billy, if you get a zip file then your data extract widget is most likely pointing to a 10 server.  If the file is empty, my first guess would be that there was no data to extract where you tried it.  Try zooming out to the whole world (or whatever area you "know" has the data to be extracted).

To extract data from your own service, yes you will need ArcGIS Server 10, because the widget works with a "Clip and Ship" geoprocessing service that was new in "10".

The documentation has more details on the Data Extract widget:
http://help.arcgis.com/en/webapps/flexviewer/help/index.html#widgets/dataextract_widget.htm
0 Kudos
GIS_TechEngineering
New Contributor III
Bjorn and Jon,
   Thanks for the reply. Unfortunately, we can't upgrade to Server 10 until City Works does. Oh well.
When we do, this would be a very handy widget. Thanks again.
Billy
0 Kudos
BenSayers
New Contributor II
Hi there,
I am trying to replicate the Clip and Ship Geoprocessing sample using my own data and I am having trouble getting the data to export. I am using ArcGIS Server 10.

I am getting a zip file exported and downloaded but the shapefile is empty although the .DBF does have the column names.

My data is held in Oracle in British National Grid (SRID 27700) and the map uses web mercator (102100). I am setting the geoprocessing output spatial refernce but this does not seem to affect anything.

gp = new esri.tasks.Geoprocessor("http://maps.lynxinfo.co.uk:8080/LIVE/services/UKOGL/UKOGLTools/GPServer/Extract%20Data%20Task");
gp.setOutSpatialReference({wkid:27700});



This is what I am doing to get the AOI for the Extract Data Geoprocessing Task:
function showTResults(results){
 dojo.forEach(results, function(result) {
      var graphic = result.feature;
   var fMarkerSymbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE, 10, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255, 0, 0]), 1), new dojo.Color([0, 255, 0, 0.25]));
      var fLineSymbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASH, new dojo.Color([255, 0, 0]), 3);
      var fPolygonSymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_NONE, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASHDOT, new dojo.Color([255, 0, 0]), 2), new dojo.Color([255, 255, 0, 0.25]));
      switch (graphic.geometry.type) {
    case "point":
           graphic.setSymbol(fMarkerSymbol);
        break;
        case "polyline":
           graphic.setSymbol(fLineSymbol);
  break;
        case "polygon":
            graphic.setSymbol(fPolygonSymbol);
        break;
        }
 map.graphics.add(graphic);
    });
 ext = esri.graphicsExtent(graphic);
};


Then passing it in like this:
var dlFormat = 'Shapefile - SHP - .shp';

 var params2 = {
  "Layers_to_Clip": clipLayers,
  "Area_of_Interest": ext,
   "Feature_Format": dlFormat
 }
 esri.show(loading);
 gp.submitJob(params2, completeCallback, statusCallback, function(error){
  alert(error);
 esri.hide(loading)
 });


Does anyone have any idea what I need to do to fix this?
0 Kudos
JeffersonFerreira_Ferreira
New Contributor III
Hi;

I'm not able to select the layers at Data Extract Widget. Although I've setted the "layers to clip" on the model the "choice list" on rest appear empty. Thus the widget window dont show any layer to check.

Any idea??

Thanks
0 Kudos
BjornSvensson
Esri Regular Contributor
I'm not able to select the layers at Data Extract Widget. Although I've setted the "layers to clip" on the model the "choice list" on rest appear empty.



  • Is your  geoprocessing service  published as asynchronous?

  • Does your geoprocessing service  expose at least the following three input parameters (with these exact names): Area_of_Interest, LLayers_to_Clip, Feature_Format.


From See http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Data_Extract_widget/01m30000003...
0 Kudos
JeffersonFerreira_Ferreira
New Contributor III

  • Is your  geoprocessing service  published as asynchronous?

  • Does your geoprocessing service  expose at least the following three input parameters (with these exact names): Area_of_Interest, LLayers_to_Clip, Feature_Format.



Hi Bjorn and others colleagues;

The answer for your two questions is yes. I tried a lot of parameters combinations but with no success. I see that others have in Layers_to_Clip at rest a "Choice List" that I dont have. Now in my last try I have added only one layer to model builder parameter (called "comunidades). Here is my rest:

Task: Extract Data Task



Display Name: Extract Data Task

Category: 

Help URL: http://lab-arcgis-10/arcgisoutput/beta/ExtractDataTask.htm

Execution Type: esriExecutionTypeAsynchronous

Parameters: 

Parameter: Area_of_Interest
Data Type: GPFeatureRecordSetLayer
Display Name: Area of Interest
Direction: esriGPParameterDirectionInput
Default Value: 
Geometry Type: esriGeometryPolygon
Spatial Reference: 
Fields:
FID (Type: esriFieldTypeOID, Alias: FID)
Shape (Type: esriFieldTypeGeometry, Alias: Shape)
Id (Type: esriFieldTypeInteger, Alias: Id)
Shape_Length (Type: esriFieldTypeDouble, Alias: Shape_Length)
Shape_Area (Type: esriFieldTypeDouble, Alias: Shape_Area)
Parameter Type: esriGPParameterTypeRequired
Category: 

Parameter: Feature_Format
Data Type: GPString
Display Name: Feature Format
Direction: esriGPParameterDirectionInput
Default Value: File Geodatabase - GDB - .gdb
Parameter Type: esriGPParameterTypeRequired
Category: 
Choice List: 
File Geodatabase - GDB - .gdb
Shapefile - SHP - .shp
Autodesk AutoCAD - DXF_R2007 - .dxf
Autodesk AutoCAD - DWG_R2007 - .dwg
Bentley Microstation Design (V8) - DGN_V8 - .dgn

Parameter: Output_Zip_File
Data Type: GPDataFile
Display Name: Output Zip File
Direction: esriGPParameterDirectionOutput
Parameter Type: esriGPParameterTypeRequired
Category: 

Parameter: Layers_to_Clip
Data Type: GPMultiValue:GPString
Display Name: Layers to Clip
Direction: esriGPParameterDirectionInput
Default Value: ComunidadesParameter Type: esriGPParameterTypeRequired
Category: 

Supported Operations:   Submit Job 

Supported Interfaces:   REST 


I really dont realize what could be happening...Any ideas will be appreciated.
Thanks
0 Kudos
JeffersonFerreira_Ferreira
New Contributor III
Someone have an idea about the previous post?
Any help will be appreciated.
Thanks
0 Kudos