Clipping Spatially Enabled DataFrames

493
2
04-10-2022 05:29 PM
iintrater
New Contributor

I have a SEDF with dissolved polygons and I want to clip it to the extent of another SEDF with a single polygon. I tried using the arcgis.geometry.Geometry.clip but was unsuccessful. Does anyone have any advice?

SEDF 1 (Input):

['OBJECTID', 'School', 'Count_', 'AnalysisArea', 'SHAPE']
SEDF 2 (Clip):
['OBJECTID', 'Count_', 'AnalysisArea', 'SHAPE']
0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

from your link....

arcpy installed?

where is the code that you provided the required envelop?


... sort of retired...
0 Kudos
iintrater
New Contributor

arcpy is installed, all of the code is within the arcgis pro built in jupyter notebook:

outDissolve_SDF is SEDF #1 and boundaryDissolve_SDF is SEDF #2

outClip = outDissolve_SDF.clip(boundaryDissolve_SDF)
outClip

0 Kudos