Data extract widget
http://resources.arcgis.com/en/help/flex-viewer/concepts/
This widget enables end users to select a subset of data from the visible data content in the Viewer application's map display, and download it locally onto the client machine as a zip file. End users define the data subset by specifying an area of interest. Behind the scenes, it works with a "Clip and Ship" geoprocessing service.
Workflow
- Define an area of interest (to extract data) using one of the area boundary creation tools (from left to right):
- polygon
- freehand polygon
- rectangle
- circle
- ellipse
- Select data layers of interest to extract (based on your GP service) using the checkboxes.
- Select data format of extracted data (based on your
GP service) from the dropdown list.
Available formats depend on the specific pblished tasks, but generally include:
- File geodatabase (.gdb)
- Shapefile (.shp)
- Autodesk AutoCAD (.dxf)
- Autodesk AutoCAD (.dwg)
- Bentley Microstation Design v8 (.dgn)
- Click Extract.
The Data Extract dialog will appear, prompting the end user to specify a location for saving the data subset.
The extracted data will be saved locally as a zip file named extractedData.zip.
Conceptual workflow
Requires: a feature service (to extract data from) and a geoprocessing service (that performs the 'clip and ship' functionality).
- Takes an input defined area of interest.
- The geoprocessing service does the following:
- Applies it to the selected layers to extract data.
- Gets the feature data from the feature service.
- Formats the feature data into the selected data format and zips it up, making it available for download.
Setting up your own Data Extract service
This widget leverages the Clip and Ship functionality from ArcGIS Desktop. Read about GP Service example: "Clip and ship" in the ArcGIS Desktop help documentation, to learn more about setting up your own server with a data extraction service. Some points to keep in mind when creating your own GP service:
- Your GP service must be published as Asynchronous.
- Your GP service must expose at least these 3 input parameters (with these exact names):
- Area_of_Interest
- Layers_to_Clip
- Feature_Format
Its recommended to try to make it similar to this Extract Data Task sample.
Test drive the Data extract widget or read its tag reference.