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

Prepend BGS rules with 'BGS data validation:' #52

Closed volcan01010 closed 2 years ago

volcan01010 commented 2 years ago

Description

This merge request prepends "BGS data validation:" to the rule names for the BGS rules.

To test

Run the API and validate example_ags.ags with both AGS and BGS validator. The output should include BGS data validation in the rule names:

================================================================================
example_ags.ags: 2 error(s) found in file!

# Metadata

File size: 4039 bytes
Checkers: ['python_ags4 v0.3.6', 'bgs_rules v2.0.0']
Dictionary: Standard_dictionary_v4_0_4.ags
Time: 2021-10-11 13:58:11.432016+00:00

7 groups identified in file: PROJ ABBR TRAN TYPE UNIT LOCA SAMP
Optional FILE group present: False
Optional DICT group present: False
1 data rows in LOCA group
1 projects found: 121415 (ACME Gas Works Redevelopment)

# Errors

## BGS data validation: Required BGS Groups

Group:  - Required BGS groups not present: GEOL

## BGS data validation: Spatial Referencing

Group: LOCA - Spatial referencing system not in LOCA_GREF, LOCA_LREF or LOCA_LLZ!

================================================================================