One of the use cases for Julia that I’m finding for work is for geographical purposes. However geography wasn’t my specialization in school.
One of the things I’m wanting to do is collect data within countries/regions/provinces/counties/etc, which are defined by some latitude and longitude degree range.
Thing is when looking at geographical data with something like GeoDataFrames.jl, lat and long aren’t stored as degrees but as large decimal points.
So say we look at Texas, which is massive, and it’s spans something like 25° 50’ N to 36° 30′ N (Latitude) and 93° 31′ W to 106° 439′ W (Longitude).
If I can transform the above degree ranges into decimal ranges, I can filter my geographical dataframe for points, polygons, whatever if their lat and long is within those ranges.
More or less yes, because generally for anything GIS related (something I do at work) you don’t have 93° 31′ W or 93.5166666667° W in the data you want to put on a map. It’s usually just 93.5166666667 is a longitude data point in your data.
@aplavin, I looked briefly at your code and the various cases handled by the Matlab function indicated above don’t seem to be treated?
Consider a small area of interest defined across the equator with zero latitude (and/or across Greenwich with zero longitude). A location can then be defined with negative minutes or negative seconds, but the signs cannot be arbitrary.