Quantcast
Channel: Question and Answer » arcmap
Viewing all articles
Browse latest Browse all 248

Spatial Query between polyline features and point features within specified Buffer

$
0
0

I’m new to GIS (so I’m lost on this) and looking for a C# code sample to help me do 2 types of spatial queries. I have 2 Layers only. First layer is pipelines, which are polyline shapes so I can select multiple pipeline segments to make up an entire pipeline. Second Layer is facilities, which are point shapes.

Query 1: Select Pipeline Segments in the Pipeline Layer (Polylines) and find the facilities (in the Facility Layer) that are within a certain distance of selected Pipeline Segments.

Query 2: Select a single Facility in the Facility Layer (Point) and find the Pipeline Segments (Polylines) that are within a certain distance of the Facility Point.

I can do these queries via the ArcMap interface. I select the Source Features in the Attribute Table, then Selection Menu, Select by Location, select the “other” Layer as the Target Layer and for Spatial Selection Method I select “Target layer(s) features are within a distance of the Source layer feature”. But now I need to do this in C# code for my ArcMap AddIn.


Viewing all articles
Browse latest Browse all 248

Trending Articles