sde.st_intersects(shape, layer2.shape) or sde.st_intersects(layer1.shape, layer2.shape)
There are no spatial operators in the basic SQL supported on file geodatabase, so no, that is not an option. It would be an option in a true database source.
- V
Hey @VinceAngelo, can a spatial SQL query be written against a file geodatabase using a definition query within ArcGIS Pro (obviously not in clause mode)? What would the syntax look like?
sde.st_intersects(shape, layer2.shape) = 1
SELECT * FROM MYLAYER1 mla, MYLAYER2 mlb WHERE sde.st_intersects(mla.shape, mlb.shape) = 1
sde.st_area(shape) >= 10000
SELECT objectid FROM poly_stg t WHERE sde.ST_Intersects( sde.ST_GeomFromText('POLYGON ((0 0,5 0,5 5,0 5,0 0))',2), t.shape) = 1;
SELECT sa.id SA_ID, hs.id HS_ID FROM SENSITIVE_AREAS sa, HAZARDOUS_SITES hs WHERE sde.st_intersects (sde.st_buffer (hs.location, .1), sa.zone) = 1 ORDER BY sa.id;
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.