Extract Data Task (Server)

Summary

Extracts the selected layers in the specified area of interest to the selected formats and spatial reference, and returns the data in a .zip file.

Caution:

This tool is intended primarily for use as part of a geoprocessing service. When using this tool as part of a geoprocessing service, copy the tool into a custom toolbox, and edit the model if necessary. Because the geoprocessing service wizard is not available in ArcGIS Desktop, you must save the contained toolbox as a supported previous version and publish it from ArcGIS Desktop of the same version of the toolbox. After publishing, you can connect to the server and use the service from ArcGIS Desktop.

Usage

  • The Feature Format and Raster Format parameters contain a list of options. These options are set from the Value List filter on the Parameters tab of the model Properties.

Parameters

LabelExplanationData Type
Layers to Clip

The layers to be clipped. Layers must be feature or raster; layer files are not supported.

Layer
Area of Interest

One or more polygons by which the layers will be clipped.

Feature Set
Feature Format

Specifies the format of the output features. The format should be specified as follows:

  • Name or format - Short Name - extension (if any)

The hyphens are required and there must be one space before and after the hyphen.

For example:

  • File Geodatabase - GDB - .gdb
  • Shapefile - SHP - .shp
  • Autodesk AutoCAD - DXF_R2007 - .dxf
  • Autodesk AutoCAD - DWG_R2007 - .dwg
  • Bentley Microstation Design (V8) - DGN_V8 - .dgn

The list of short names supported includes DGN_V8, DWG_R14, DWG_R2000, DWG_R2004, DWG_R2005, DWG_R2007, DWG_R2010, DXF_R14, DXF_R2000, DXF_R2004, DXF_R2005, DXF_R2007, and DXF_R2010.

String
Raster Format

Specifies the format of the output raster datasets. The format should be specified as follows:

  • Name of format - Short Name - extension (if any)

The hyphens are required and there must be one space before and after the hyphen.

For example:

  • Esri GRID - GRID
  • File Geodatabase - GDB - .gdb
  • ERDAS IMAGINE - IMG - .img
  • Tagged Image File Format - TIFF - .tif
  • Portable Network Graphics - PNG - .png
  • Graphic Interchange Format - GIF - .gif
  • Joint Photographics Experts Group - JPEG - .jpg
  • Joint Photographics Experts Group - JPEG - .jp2
  • Bitmap - BMP - .bmp

Some of the above raster formats have limitations and not all data can be converted to the format.

String
Output Zip File

The zip file that will contain the extracted data.

File

arcpy.server.ExtractDataTask(Layers_to_Clip, Area_of_Interest, Feature_Format, Raster_Format, Output_Zip_File)
NameExplanationData Type
Layers_to_Clip
[Layer,...]

The layers to be clipped. Layers must be feature or raster; layer files are not supported.

Layer
Area_of_Interest

One or more polygons by which the layers will be clipped.

Feature Set
Feature_Format

Specifies the format of the output features. The format should be specified as follows:

  • Name or format - Short Name - extension (if any)

The hyphens are required and there must be one space before and after the hyphen.

For example:

  • File Geodatabase - GDB - .gdb
  • Shapefile - SHP - .shp
  • Autodesk AutoCAD - DXF_R2007 - .dxf
  • Autodesk AutoCAD - DWG_R2007 - .dwg
  • Bentley Microstation Design (V8) - DGN_V8 - .dgn

The list of short names supported includes DGN_V8, DWG_R14, DWG_R2000, DWG_R2004, DWG_R2005, DWG_R2007, DWG_R2010, DXF_R14, DXF_R2000, DXF_R2004, DXF_R2005, DXF_R2007, and DXF_R2010.

String
Raster_Format

Specifies the format of the output raster datasets. The format should be specified as follows:

  • Name of format - Short Name - extension (if any)

The hyphens are required and there must be one space before and after the hyphen.

For example:

  • Esri GRID - GRID
  • File Geodatabase - GDB - .gdb
  • ERDAS IMAGINE - IMG - .img
  • Tagged Image File Format - TIFF - .tif
  • Portable Network Graphics - PNG - .png
  • Graphic Interchange Format - GIF - .gif
  • Joint Photographics Experts Group - JPEG - .jpg
  • Joint Photographics Experts Group - JPEG - .jp2
  • Bitmap - BMP - .bmp
Caution:

Some of the above raster formats have limitations and not all data can be converted to the format. For a list of formats and their limitations, refer to List of supported sensors.

String
Output_Zip_File

The zip file that will contain the extracted data.

File

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics