BritishGeologicalSurvey / pyagsapi

pyagsapi - An AGS Utilities API with AGS v4.x Schema Validation & Converter for .ags<-->.xslx files
https://britishgeologicalsurvey.github.io/pyagsapi/
GNU Lesser General Public License v3.0
12 stars 2 forks source link

Bgs validation #41

Closed volcan01010 closed 3 years ago

volcan01010 commented 3 years ago

This pull request adds the validation against some of the BGS rules described in #21.

There is an endpoint and the results are presented as JSON or as text in the same format as the main validate examples.

The following rules are included:

BGS_RULES = {
    'Required Groups': check_required_groups,
    'Required BGS Groups': check_required_bgs_groups,
    'Spatial Referencing': check_spatial_referencing_system,
    'Eastings/Northings Present': check_eastings_northings_present,
    'Eastings/Northings Range': check_eastings_northings_range,
    'Drill Depth Present': check_drill_depth_present,
    'Drill Depth GEOL Record': check_drill_depth_geol_record,
}
volcan01010 commented 3 years ago

I've updated this pull request to handle the files that were causing Internal Server Errors.

ximenesuk commented 3 years ago

Reviewed and rebased to fix conflicts in html & css.