Select to view content in your preferred language

Spatial Join between 2 layer based on intersected length

10-21-2018 11:32 AM
New Contributor


I have a Polygon and a Polyline layers, I want to join them spatially (using the spatial join tool) only if 1 mile or more of the line is inside the polygon

is there a spatial relationship can help me to define this join condition?


0 Kudos
1 Reply
MVP Emeritus

You want to do this with the ArcGIS api for python?

ArcMap? or ArcGIS Pro? 

Why a spatial join when other options exist?

As a start, I would intersect the polyline featureclass with the polygon featureclass (returning polylines).

Intersect—Help | ArcGIS Desktop 

keep the attributes of both and you can query the shapelength field of the new file for those values greater than your threshold distance.

0 Kudos