The geography data type is new to me and I'm trying to get my head around how to use it. I have a simple question I'm unable to find an answer for.
I have a database containing coordinates (Lat, Lon; decimal(9,6)) and elevation (smallint) data. Getting highest/lowest/most Northerly/E/S/W is pretty straight forward:
SELECT MAX(Lat) FROM Tbl etc.
Geography data is stored as an object and as far as I can tell, to get the most Northerly point, I first need to convert all data to Lat/Lon/Elev and then look for the point with the highest Lat value. That seems like a lot of trouble for something which imo is supposed to be really simple. With that in mind i'm inclined to keep the existing data and add the geography, but that doesn't feel right to me: storing the same info twice in the same table.
Is there a simple way of getting the most Northerly point from a set coordinates stored as geography data?