EUDAT-B2SHARE / b2share

B2SHARE software for the EUDAT CDI services.
https://b2share.eudat.eu
GNU General Public License v2.0
35 stars 33 forks source link

Validation error when adding optional geospatial meta data #1865

Open TillF opened 3 years ago

TillF commented 3 years ago

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 commented 2 years ago

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

TillF commented 2 years ago

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.