SpeciesFileGroup / taxonworks

Workbench for biodiversity informatics.
http://taxonworks.org
MIT License
87 stars 26 forks source link

[Bug]: Georeference direct coordinates not working #4014

Closed camwebb closed 2 months ago

camwebb commented 2 months ago

Steps to reproduce the bug

1. In Collecting Event page
2. Click on Georeference (0), and a map popup appears
3. Click on Enter Coordinates
4. Enter lat, long in decimal degrees, and "range distance" 
   (BTW, this could be better labeled - I assume this is georef error in m)
5. Click Add
6. Long pause, then an error popup appears (see screenshot), and no point is saved

Screenshot

georef_error

Expected behavior

A point with an error should be saved.

I also tried using "POINT ( )" in WKT and get the same errors.

I can enter a point using the visual map interface, but the coordinates of this cannot be editted manually.

Additional Screenshots

No response

Environment

Production

Sandbox Used

No response

Version

0.43.2

Browser Used

Firefox on Linux

mjy commented 2 months ago

@camwebb This is a correct validation, likely, that is ensuring the point you picked is inside the area you picked. From the error message you have selected a GeographicArea that is incompatible with the point. If you wish to allow this incompatability then you need to check the "prefer Geographic Area" in the previous screen.

camwebb commented 2 months ago

Ah... :smiley: I swear that yesterday I was trying to add a point within the geographic area (Nunavut, and tried Canada too), but today can't recreate the situation, and it's working well. Thanks for your attention.