Skip to content
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

Validation error when adding optional geospatial meta data #1865

Open
TillF opened this issue Nov 22, 2021 · 2 comments
Open

Validation error when adding optional geospatial meta data #1865

TillF opened this issue Nov 22, 2021 · 2 comments
Assignees

Comments

@TillF
Copy link

TillF commented Nov 22, 2021

Below the lowermost form field of the meta-data form, a button "Show more details" expands more fields. Among them is the group "Spatial coverages". It apparently allows to specify the location via point, bounding box or polygons.
Having entered the bounding box only (i.e. point coords left blank), on saving this error message appears:
Error in field 'spatial_coverages/0/point/point_longitude': None is not of type 'number'

I would expect the point coordinates be obsolete when I specified a bounding box.
If point coords are really needed for whatever reason, they should be calculated from the centroid of the bounding box, if missing.

@noblespirit noblespirit self-assigned this Dec 2, 2021
@noblespirit
Copy link

Hi, I'm having trouble reproducing this. Could you please provide details (B2SHARE instance, browser, OS, steps to reproduce)? Thank you!

@TillF
Copy link
Author

TillF commented Dec 9, 2021

I don't know what "B2SHARE instance" is. I am using the service available under b2share.eudat.eu with FF 94.0.2 (64-Bit), Windows 10. I entered the data as in this screenshot:
grafik
Clicking "Save draft" then results in the error messages mentioned above:
Error: Validation error.
Error in field 'spatial_coverages/0/box/westbound_longitude': None is not of type 'number'
grafik
Saving is only successful when the bounding box data is entered as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants