ckan / ckanext-dcat

CKAN ♥ DCAT
164 stars 142 forks source link

Parse dcat:spatialResolutionInMeters as float #285

Closed amercader closed 4 weeks ago

amercader commented 4 weeks ago

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.

amercader commented 4 weeks ago

Great! thanks