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

Parse dcat:spatialResolutionInMeters as float #285

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

amercader
Copy link
Member

According to the spec this should be typed as an xsd:Decimal, but we are parsing it as int:

https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_spatial_resolution

WDYT @seitenbau-govdata ?

This allows to retrieve the correct values for decimal numbers (eg 1.5 instead of 1). This changes slightly the values returned for integers (eg 1 to 1.0) but as this function is only currently used in this property I think it's safe to introduce the change.

According to the spec this should be typed as an xsd:Decimal, but we are
parsing it as int:

https://www.w3.org/TR/vocab-dcat-3/#Property:dataset_spatial_resolution
Copy link
Member

@seitenbau-govdata seitenbau-govdata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amercader Thanks for the improvement. The changes LGTM. 😃

@amercader amercader merged commit 104fc9b into master Jun 4, 2024
6 of 8 checks passed
@amercader
Copy link
Member Author

Great! thanks

@amercader amercader deleted the spatial_resolution_in_meters-float branch June 4, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants