Select Features From a Layer After Using Upload Data
Hi,
After I use the upload data tool to bring in a polygon Shapefile, how can I use the new feature layer to select features from another layer . I tried to use the Query and Filter tools, but the new feature layer is no listed.
0
-
I suppose the Query and Filter tools only see actual ArcGIS Server layers. Uploaded shapefiles are added as graphics to a separate graphics layer.
To do something usefull with uploaded shapes, you would probably need to write a workflow. One example would be to use the GetGraphicsLayerContent activity to get the greometries, which in turn could be used in a QueryTask activity. This assumes you know the ID of the graphics layer that contains the upload shapes.
Another way would be to put everything in a workflow: Use a DisplayForm to upload the shapefile, then ShapeFileToFeatureSet to convert it to a FeatureSet (and optionally RunExternalCommand [AddMarkupGeometry] to add the shapefile to the map). Finally use a QueryTask to query other layers.0
Please sign in to leave a comment.
Comments
1 comment