-
Notifications
You must be signed in to change notification settings - Fork 41
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
Require user to supply --convert-to-dataset-format #845
Conversation
... or, sometimes, --no-convert-to-dataset-format --convert-to-dataset-format: the user acknowledges that the tiles as they are don't comply to the dataset format constraint. Kart is allowed to convert them during commit so that they do. In practise, the conversions will be any of: make cloud optimized change laz version (eg LAZ 1.2 to LAZ 1.4) --no-convert-to-dataset-format: the user acknowledges that the tiles as they are don't comply to the dataset format constraint. Kart is allowed to update the dataset format so that they do. In practice the update will be: - drop cloud optimized constraint - change laz format of entire dataset (only allowed if every new tile conforms to the new format)
50a28fa
to
4e72dc9
Compare
kart/base_diff_writer.py
Outdated
self.write_pk_conflicts_warning_footer() | ||
self.write_list_of_conflicts_warning_footer() | ||
|
||
def write_pk_conflicts_warning_footer(self): |
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.
are 'PK conflicts' always 'spatial filter conflicts' and vice versa? I'd suggest renaming consistently to the latter (it's the most descriptive) rather than using two names
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.
Fixed
kart/point_cloud/v1.py
Outdated
merged_format.error_message = "Committing LAS tiles is not supported, unless you specify the --convert-to-dataset-format flag" | ||
merged_metadata["format.json"] = merged_format | ||
|
||
def is_cloud_optimized(self): | ||
return self.get_meta_item("format.json").get("optimization") == "copc" | ||
def _ensure_list(self, arg): |
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.
unused?
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.
Used in one place - I'll inline it to where it's used
... or, sometimes, --no-convert-to-dataset-format
--convert-to-dataset-format: the user acknowledges that the tiles as they are don't comply to the dataset format constraint. Kart is allowed to convert them during commit so that they do. In practise, the conversions will be any of:
make cloud optimized
change laz version (eg LAZ 1.2 to LAZ 1.4)
--no-convert-to-dataset-format: the user acknowledges that the tiles as they are don't comply to the dataset format constraint. Kart is allowed to update the dataset format so that they do. In practice the update will be:
This also updates
kart diff
to better explain these type of errors: until now, they were shown as conflicts with <<<, >>> markers, but the associated error message isn't shown until youkart commit
. Butkart diff
will now also show these warnings.#842
Checklist: