I have the coordinates that represents bounding rectangle on the earth:
Upper Left Corner Latitude
Upper Left Corner Longitude
Lower Right Corner Latitude
Lower Right Corner Longitude
I need to write the function that determines whether the given point with lat long coordinates hit the bounding rectangle.
Is there any way to do it ? I didn't find functions in sql server to do it. All functions work with lines and polygons, but I have only bounds, not the complete polygon or line.