Within
Last updated
Was this helpful?
Last updated
Was this helpful?
The Within function determines if one geography is fully within another geography.
The function has these arguments:
geography1
Required The Geography value which is potentially within (inside) the other Geography value Can be a Point, a Line Segment, or Polygon
geography2
Required The Geography value that is potentially within (inside) the other Geography value
The function returns True
.
The first Within function determines if the Centroid of the polygon is within the polygon, while the second function determines if the Empire State Building ( -73.985428, 40.748817) is within the polygon.
The Within function determines if the values in the Coordinates column are within the boundaries of Brooklyn.