-
Notifications
You must be signed in to change notification settings - Fork 1
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
Minor updates to data models #60
Conversation
Whoops, one more thing before this is ready @phargogh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These all make sense to me, thanks @davemfish !
@@ -28,7 +28,7 @@ | |||
'https', | |||
] | |||
|
|||
DT_FMT = '%Y-%m-%d %H:%M:%S' | |||
DT_FMT = '%Y-%m-%d %H:%M:%S %Z' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
raster_size={'width': info['raster_size'][0], | ||
'height': info['raster_size'][1]}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also like that this could be expanded to include the number of bands or any other attributes that expression the dimensionality of the dataset in the future, should it become necessary.
Based on feedback, we have a few changes to attributes:
mediatype
: removed, not usefulname
: removed, not useful, redundant withpath
and too easily confused withtitle
raster_size
: changed fromlist
todict
to allow "width" and "height" labelsmetadata_version
: changed togeometamaker_version
to be more accurateAll these changes are made backwards-compatible with respect to
describing
a dataset with an existingyml
document. When a pre-existing document is loaded, incompatible attributes are removed/replaced with warnings issued.validate
will issueValidationErrors
on a document with the old attributes.Fixes #58