Select to view content in your preferred language

SQL Definition Query based on STWITHIN

291
1
10-25-2024 09:26 AM
Carto_Broc
Emerging Contributor

I'm create a SQL Definition Query for a layer based on the coordinates of a polygon. The code below is not being accepted, and I can't determine why.

 

SHAPE.STWithin(geometry::STGeomFromText(POLYGON((139.6668830518439 35.46069824948353,139.6668830518439 35.515095998135905,139.73836302034738 35.515095998135905,139.73836302034738 35.46069824948353))',4326))

 

 

Carto_Broc_0-1729873525506.png

 

Tags (1)
0 Kudos
1 Reply
AlfredBaldenweck
MVP Regular Contributor

First thing to check is you have an unmatched apostrophe.