Open bronwyncombs opened 1 year ago
Might be a duplicate of https://github.com/specify/specify7/issues/1907
From #3880
For instance, when you select a polygon and a point, you see the following in the preview within GEOLocate:
37.7749 -122.4194 Unavailable 37.77805,-122.488751,37.746294,-122.488751,37.768009,-122.455106,37.77805,-122.488751
You can see that the latitude, longitude, and uncertainty are separated by
` characters. The polygon is separated by
,` characters.This doesn't cause a problem when you have a set of coordinates and an uncertainty radius, but when you only have a polygon, it causes errors to occur.
For example, if you have only this in your preview:
37.77805,-122.488751,37.746294,-122.488751,37.768009,-122.455106,37.77805,-122.488751
https://github.com/specify/specify7/assets/37256050/6d6b8135-b37d-4500-93db-8840bd4f5565
console-export-2023-8-1_9-27-22.txt
@melton-jason was able to see this in action
My theory is that the comma separated polygon is trying to be interpreted as longitude, latitude, uncertainty, and then the polygon. Specify likely does not expect only a polygon, resulting in an error.
From #3242
After creating a polygon in GEOLocate, I save it to the form. When I use GEOLocate again, it is not mapped.
From #1907
When leaflets plots a locality, it retrives the error radius from the
Locality.latLongAccuracy
field.Locality.geoCoordDetails.maxUncertaintyEst
should be used instead, as that's the field that is used by GeoLocale.
Describe the bug Currently unable to add a polygon to a locality record because the
Max Uncertainty Est
field in the Geo Coord Details sub-form gets triggered upon save. The map's imagery will go away if you open it again after this without saving first. Putting a value in the Max Uncertainty field before using the plugin, saving, and then going to the plugin has no effect (shown at end of recording).To Reproduce Steps to reproduce the behavior:
Screenshots If applicable, add screenshots to help explain your problem.
https://github.com/specify/specify7/assets/135047322/6fd0a035-7e89-4101-9abd-79e66b18bd9d
Desktop:
7.8.13
,7.9-dev
Database Name:
sdnhmpaleo_3_31_23