-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
Hi,
When I tested the package on an example STAC Catalogue from here , after removing the STAC extensions, the validator works as expected and I get the following response:
____ ____ __ ___ ___ _ _ ____ ___ __ _
/ ___)(_ _)/ _\ / __)___ / __)/ )( \( __)/ __)( / )
\___ \ )( / \( (__(___)( (__ ) __ ( ) _)( (__ ) (
(____/ (__)\_/\_/ \___) \___)\_)(_/(____)\___)(__\_)
stac-check: STAC spec validation and linting tool
Please upgrade from version 1.0.0-beta.2 to version 1.1.0!
Validator: stac-validator 3.8.1
Validation method: JSONSchema
Valid ITEM: True
Schemas validated:
https://schemas.stacspec.org/v1.0.0-beta.2/item-spec/json-schema/item.json
STAC Best Practices:
Item name 'LC81530252014153LGN00' should only contain Searchable identifiers
Identifiers should consist of only lowercase characters, numbers, '_', and '-'
Item file names should match their ids: 'stac4' not equal to 'LC81530252014153LGN00
The bbox field does not match the bounds of the geometry. The bbox should be the minimum bounding rectangle of the geometry.
Calculated bbox from geometry: [49.163540, 72.275020, 51.368120, 75.708210]
Actual bbox in metadata: [49.163540, 72.275020, 51.368120, 75.676620]
Mismatched coordinates:
max latitude: calculated=75.708210, actual=75.676620, diff=0.0315900
This object has 4 links
However, if I add in the sat extension, https://stac-extensions.github.io/sat/v1.1.0/schema.json, which we are using in some of our other STAC items, this gives us the following unexpected output:
____ ____ __ ___ ___ _ _ ____ ___ __ _
/ ___)(_ _)/ _\ / __)___ / __)/ )( \( __)/ __)( / )
\___ \ )( / \( (__(___)( (__ ) __ ( ) _)( (__ ) (
(____/ (__)\_/\_/ \___) \___)\_)(_/(____)\___)(__\_)
stac-check: STAC spec validation and linting tool
Please upgrade from version 1.0.0-beta.2 to version 1.1.0!
Validator: stac-validator 3.8.1
Validation method: JSONSchema
Valid : False
Schemas validated:
https://stac-extensions.github.io/sat/v1.1.0/schema.json
https://schemas.stacspec.org/v1.0.0-beta.2/item-spec/json-schema/item.json
STAC Best Practices:
The bbox field does not match the bounds of the geometry. The bbox should be the minimum bounding rectangle of the geometry.
Calculated bbox from geometry: [49.163540, 72.275020, 51.368120, 75.708210]
Actual bbox in metadata: [49.163540, 72.275020, 51.368120, 75.676620]
Mismatched coordinates:
max latitude: calculated=75.708210, actual=75.676620, diff=0.0315900
A link to 'self' in links is strongly recommended
Validation error type:
JSONSchemaValidationError
Validation error message:
'Collection' was expected. Error is in type
This object has 4 links
The sat extension is supported by both Items and Collections, so it is not clear what is causing this error. Also, note that there is still a self link in the Item, so I am not sure why it is now included as a best practice warning.
Any help would be much appreciated, thanks!
Metadata
Metadata
Assignees
Labels
No labels