{ "name": "SelectLayerByLocation", "displayName": "PointnPoly", "description": "Selects features based on a spatial relationship to features in another dataset or the same dataset.", "category": "", "helpUrl": "https://maps2.dcgis.dc.gov/dcgis/rest/directories/arcgisoutput/GEOPROCESSING/PointnPolySelection_GPServer/GEOPROCESSING_PointnPolySelection/SelectLayerByLocation.htm", "executionType": "esriExecutionTypeAsynchronous", "parameters": [ { "name": "in_layer", "dataType": "GPMultiValue:GPString", "displayName": "Input Features", "description": "The features that will be evaluated using the Selecting Features parameter values. The selection will be applied to these features.", "direction": "esriGPParameterDirectionInput", "defaultValue": [ "DCGIS_ExportFeatures" ], "parameterType": "esriGPParameterTypeRequired", "category": "", "choiceList": [ "DCGIS_ExportFeatures", "DCGIS_ExportFeatures1" ], "parameterInfos": [ { "name": "", "dataType": "GPString", "displayName": "" } ] }, { "name": "overlap_type", "dataType": "GPString", "displayName": "Relationship", "description": "Specifies the spatial relationship that will be evaluated.Intersect\u2014The features in the input layer will be selected if they intersect a selecting feature. This is the default.Intersect 3D\u2014The features in the input layer will be selected if they intersect a selecting feature in three-dimensional space (x, y, and z).Intersect (DBMS)\u2014The features in the input layer will be selected if they intersect a selecting feature.This option applies to enterprise geodatabases only. The selection will be processed in the enterprise geodatabase DBMS rather than on the client when all requirements are met (see usage notes).This option may provide better performance than performing the selection on the client.Within a distance\u2014The features in the input layer will be selected if they are within the specified distance (using Euclidean distance) of a selecting feature. Use the Search Distance parameter to specify the distance.Within a distance 3D\u2014The features in the input layer will be selected if they are within a specified distance of a selecting feature in three-dimensional space. Use the Search Distance parameter to specify the distance.Within a distance geodesic\u2014This spatial relationship is the same as Within a distance except that geodesic distance is used rather than planar distance. Distance between features will be calculated using a geodesic formula that takes into account the curvature of the spheroid and correctly handles data near and across the dateline and poles. Choose this option if the data covers a large geographic extent or the coordinate system of the inputs is unsuitable for distance calculations. Use the Search Distance parameter to specify the distance.Contains\u2014The features in the input layer will be selected if they contain a selecting feature.Completely contains\u2014The features in the input layer will be selected if they completely contain a selecting feature.Contains Clementini\u2014This spatial relationship produces the same results as the Contains option except that if the selecting feature is entirely on the boundary of the input feature (no part is properly inside or outside), the feature will not be selected.Clementini defines the boundary polygon as the line separating inside and outside, the boundary of a line is defined as its end points, and the boundary of a point is always empty.Within\u2014The features in the input layer will be selected if they are within a selecting feature.Completely within\u2014The features in the input layer will be selected if they are completely within or contained by a selecting feature.Within Clementini\u2014The result will be identical to the Within option result except that if the entirety of the feature in the input layer is on the boundary of the feature in the selecting layer, the feature will not be selected.Clementini defines the boundary polygon as the line separating inside and outside, the boundary of a line is defined as its end points, and the boundary of a point is always empty.Are identical to\u2014The features in the input layer will be selected if they are identical (in geometry) to a selecting feature.Boundary touches\u2014The features in the input layer will be selected if they have a boundary that touches a selecting feature. When the input features are lines or polygons, the boundary of the input feature can only touch the boundary of the selecting feature, and no part of the input feature can cross the boundary of the selecting feature.Share a line segment with\u2014The features in the input layer will be selected if they share a line segment with a selecting feature. The input and selecting features must be line or polygon.Crossed by the outline of\u2014The features in the input layer will be selected if they are crossed by the outline of a selecting feature. The input and selecting features must be lines or polygons. If polygons are used for the input or selecting layer, the polygon's boundary (line) will be used. Lines that cross at a point will be selected; lines that share a line segment will not be selected.Have their center in\u2014The features in the input layer will be selected if their center falls within a selecting feature. The center of the feature is calculated as follows: for polygon and multipoint, the geometry's centroid is used; for line input, the geometry's midpoint is used.", "direction": "esriGPParameterDirectionInput", "defaultValue": "Intersect", "parameterType": "esriGPParameterTypeOptional", "category": "", "choiceList": [ "Intersect", "Intersect 3D", "Within a distance geodesic", "Within a distance", "Within a distance 3D", "Contains", "Completely contains", "Contains Clementini", "Within", "Completely within", "Within Clementini", "Are identical to", "Boundary touches", "Share a line segment with", "Crossed by the outline of", "Have their center in" ] }, { "name": "select_features", "dataType": "GPString", "displayName": "Selecting Features", "description": "The features in the Input Features parameter will be selected based on their relationship to the features from this layer or feature class.", "direction": "esriGPParameterDirectionInput", "defaultValue": "DCGIS_ExportFeatures1", "parameterType": "esriGPParameterTypeOptional", "category": "", "choiceList": [ "DCGIS_ExportFeatures", "DCGIS_ExportFeatures1" ] }, { "name": "search_distance", "dataType": "GPLinearUnit", "displayName": "Search Distance", "description": "The distance that will be searched. This parameter is only valid if the Relationship parameter is set to Within a distance, Within a distance geodesic, Within a distance 3D, Intersect, Intersect 3D, Have their center in, or Contains.If the Within a distance geodesic option is selected, use a linear unit such as kilometers or miles.", "direction": "esriGPParameterDirectionInput", "dependency": "in_layer", "defaultValue": null, "parameterType": "esriGPParameterTypeOptional", "category": "" }, { "name": "selection_type", "dataType": "GPString", "displayName": "Selection Type", "description": "Specifies how the selection will be applied to the input and how it will be combined with an existing selection. This tool does not include an option to clear an existing selection; use the Select Layer By Attribute tool with the Selection Type parameter set to Clear the current selection to do that.New selection\u2014The resulting selection will replace any existing selection. This is the default.Add to the current selection\u2014The resulting selection will be added to an existing selection. If no selection exists, this is the same as the New selection option.Remove from the current selection\u2014The resulting selection will be removed from an existing selection. If no selection exists, the operation will have no effect.Select subset from the current selection\u2014The resulting selection will be combined with the existing selection. Only records that are common to both will remain selected.Switch the current selection\u2014The selection will be switched. All records that were selected will be removed from the selection, and all records that were not selected will be added to the selection.The Selecting Features and Relationship parameters are ignored when this option is specified.", "direction": "esriGPParameterDirectionInput", "defaultValue": "New selection", "parameterType": "esriGPParameterTypeOptional", "category": "", "choiceList": [ "New selection", "Add to the current selection", "Remove from the current selection", "Select subset from the current selection", "Switch the current selection" ] }, { "name": "out_layer_or_view", "dataType": "GPFeatureRecordSetLayer", "displayName": "Layer With Selection", "description": "", "direction": "esriGPParameterDirectionOutput", "defaultValue": { "displayFieldName": "", "geometryType": "esriGeometryPoint", "spatialReference": { "wkid": 26985, "latestWkid": 26985 }, "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID" } ], "features": [], "exceededTransferLimit": false }, "parameterType": "esriGPParameterTypeDerived", "category": "" }, { "name": "invert_spatial_relationship", "dataType": "GPBoolean", "displayName": "Invert Spatial Relationship", "description": "Specifies whether the spatial relationship evaluation result or the opposite result will be used. For example, this parameter can be used to get a list of features that do not intersect or are not within a given distance of features in another dataset.Unchecked\u2014The evaluation result will be used. This is the default.Checked\u2014The opposite of the evaluation result will be used. If the Selection Type parameter is set, the reversal of the selection will occur before it is combined with existing selections.", "direction": "esriGPParameterDirectionInput", "defaultValue": false, "parameterType": "esriGPParameterTypeOptional", "category": "" }, { "name": "out_layers_or_views", "dataType": "GPMultiValue:GPFeatureRecordSetLayer", "displayName": "Output Layer Names", "description": "", "direction": "esriGPParameterDirectionOutput", "defaultValue": [], "parameterType": "esriGPParameterTypeDerived", "category": "", "parameterInfos": [ { "name": "", "dataType": "GPFeatureRecordSetLayer", "displayName": "" } ] }, { "name": "count", "dataType": "GPMultiValue:GPLong", "displayName": "Count", "description": "", "direction": "esriGPParameterDirectionOutput", "defaultValue": [], "parameterType": "esriGPParameterTypeDerived", "category": "", "parameterInfos": [ { "name": "", "dataType": "GPLong", "displayName": "" } ] } ] }