In SQL, I have geographies stored. I want to check if geography is covering more than half globe, if geography crosses the international dateline or if geography crosses the equator.
I have come up with the below logic, now sure if it is correct.
- Geography covering more than half the globe - Is the logic seems the same as point #3
- Geography crossing international date line - If the coordinates of the international date line fall within the given coordinates then it seems to cross the international date line
- Geography crossing equator - If any of latitude from the given coordinates is <= 0 then it seems crossing the equator
Please correct there is any better logic.