-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minute angle parsing error #63
Comments
Perhaps this grammar code could be a help, it parses angles defined by just minutes, seconds or both, and it also parses Also, it's convention to always have the coordinates in a set order, X-Y, or Longitude-Latitude. Longitudes with a West indicator will convert to negative decimal degrees.
The above code is free to use as anyone sees fit. |
Hi @bazzaar - this is very nice - thanks for the suggestion and the code example. The errors you show are explained by the fact that Physics::Measure does not support the partial variants that you want. Sadly, I am not able to commit any tuits to this module at the moment. Let's leave this as an open issue for now and I will see what I can make of it later. Alternatively, you could consider making a new raku module that overrides a standard Physics::Measure::Angle object with this behaviour? There is some precedence for this in my Physics::Navigation module. My superficial look at PROJ suggests that there is a gap in the market for a raku PROJ capability and tbh my Physics::Navigation module is not intended to be a core Geo library, rather a precursor to exploring raku capabilities around my Yacht::Navigation hobby and so does not have (eg) Google Maps or GPS formats (and tests). So I would imagine that a common interface to import / export to/from Physics::Measure <=> "Geo::PROJ" would be suitable for most use cases. |
First of all, many thanks for making this module :-)
Tried to assign :
use Physics::Measure :ALL;
my $θ1 = ♎️<30′30″>;
say $θ1;
resulting in the following errors, also tried
my $θ1 = ♎️<2′>;
with similar errors too.Not a big issue as
my $θ1 = ♎️<0°2′0″>;
does parse, however it would be nice if just minutes, or even just seconds would parse on their own.My use case was to create a 1st pass set of control points at a defined grid (2' spacing) over an map image to be geo-(located/rectified), the points file will be imported into GRASS GIS project and individual points repositioned in the georectify GUI.
The text was updated successfully, but these errors were encountered: