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

editwibl/procwibl produces invalid GeoJSON #32

Open
selimnairb opened this issue Apr 21, 2023 · 0 comments
Open

editwibl/procwibl produces invalid GeoJSON #32

selimnairb opened this issue Apr 21, 2023 · 0 comments
Labels
bug Something isn't working major

Comments

@selimnairb
Copy link
Member

Original report by Brian Miles (Bitbucket: [Brian Miles](https://bitbucket.org/Brian Miles), ).


Using editwibl to add Platform metadata to a binary WIBL file, then procwibl to convert from binary to GeoJSON results in GeoJSON files that do not validate to CSB 3.1 convention using csbschema. Here is example csbschema output:

$ csbschema validate -f /tmp/test-inject.geojson
Validation of /tmp/test-inject.geojson against schema 3.1.0-2023-03 failed due to the following errors: 
Path: /properties/trustedNode/uniqueVesselID, error: 'SEAID-Gulf Surveyor' does not match '^[a-zA-Z][a-zA-Z0-9]*-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$'
Path: /properties/platform, error: 'length' is a required property
Path: /properties/platform/IDType, error: 'LoggerName' is not one of ['MMSI', 'IMO']
Path: /properties/platform/IDNumber, error: 'Gulf Surveyor' is not valid under any of the given schemas
Path: /properties/platform/uniqueID, error: 'SEAID-Gulf Surveyor' does not match '^[a-zA-Z][a-zA-Z0-9]*-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$'
Path: /properties/processing, error: [] is too short
Path: /properties/platform/IDType, error: Unknown IDType LoggerName.
Path: /properties/platform/dataProcessed, error: dataProcessed flag is 'false', but 'processing' properties were found.

Example workflow for generating such a non-confirming GeoJSON file can be found in the [integration test script](tests/integration/test_wibl.bash).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

1 participant