Extracts the data in the specified layers and area of interest to the selected format and spatial reference, zips the data, and emails it to the specified address. This tool can be used to create a Data Extraction geoprocessing service.
This tool will not function correctly unless it is edited and the email server is configured. To configure the email server settings, you will have to copy this model to your own custom toolbox before editing the model.
- Right-click a copied version of this model and select Edit. ModelBuilder will open and the model will appear similar to the illustration below.
- Double-click the Send Email With Zip File Attachment model element to open the tool dialog box.
- Enter values for From, Subject, Text, Max File Size, and SMTP Email Server.
- Click OK.
- You can leave the parameter Layers to Clip and Custom Spatial Reference Folder blank unless you want to provide specific layers or customized spatial reference folder. Leave the parameter to and Sent blank. The parameter Sent is a derived output of Boolean data type, which means it will not show as a parameter when you use the tool. It will set the value automatically when the zip file is sent to the e-mail address you provide.
- Save and exit the model.
- Run the model tool in ArcMap containing the layers you want to provide to create a result, then publish the result as a geoprocessing service.
The drop-down menu for the Feature Format and Raster Format parameters contains a list of default formats. These default formats are set from the Value List filter on the Parameters tab of the model Properties.
You can add, modify, or remove the list of formats for either the Feature Format parameter or the Raster Format parameter. You will have to copy this model to your own custom toolbox before making any changes.
- Right-click a copied version of this tool and select Properties.
- In the properties dialog box that appears, click the Parameters tab.
- Find the parameter of interest in the table of parameters. On the right side of the table click to bring up its value list. The set of default formats should be listed.
- Add, modify, or remove formats from the list as desired. The string you provide needs to be delimited as: Name of format - Short Name - Extension. The hyphens are required and there must be one space before and after the hyphen.
- Click OK to apply the changes and exit.
By default, all supported raster formats are in the drop-down list of raster formats.
ExtractDataAndEmailTask_server (Layers_to_Clip, Area_of_Interest, Feature_Format, Raster_Format, To)
The layers to be clipped. Layers must be feature or raster layers in the map's table of contents. Layer files do not work for this parameter.
One or more polygons by which the layers will be clipped.
The format in which the output features will be delivered. The string provided should be formatted as follows:
Internally, this tool uses the Export to CAD tool to convert data to the .dgn, .dwg, and .dxf CAD formats. 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.
The format in which the output raster datasets will be delivered. The string provided should be formatted as follows:
Any of the following strings will work:
The email address of the recipient.
This tool does not use any geoprocessing environments.
- ArcGIS Desktop Basic: Yes
- ArcGIS Desktop Standard: Yes
- ArcGIS Desktop Advanced: Yes