Repository navigation
Readers keep a feature that has no longitude/latitude place as the file holds it (#2032 C2f-4b-2) #2843
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
Merged
Merged
Readers keep a feature that has no longitude/latitude place as the file holds it (#2032 C2f-4b-2) #2843
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
54f3af6
Readers keep a feature with a place that can't be given in longitude/…
pick2510 cbdcf0b
Review: streamed sources keep such features too; a place is unplaced …
pick2510 d1deb94
Review: city models and whole reads through sources say places beyond…
pick2510 dec7cc5
Drop the unused lonlat_box; the search-area test reads the singular n…
pick2510 e44b70b
Review: a GeoJSON read of a longitude/latitude box leaves kept unplac…
pick2510 dab1ec8
Review: wrap and align the notes on what refuses such a feature (#203…
pick2510 7ec4153
Reproject::read is for MySQL and SQL Server only: not built for the b…
pick2510 67ac353
Review: the notice of places beyond longitude/latitude counts them; F…
pick2510 9213526
Review: Shapefile counts the shapes beyond longitude/latitude too; pl…
pick2510 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This PR makes
carriedskipunconvertedrows, but thedrawnclosure at line 1024 (not in the diff, so I'm anchoring here) still counts every row with a geometry. A kept-unplaced row keeps its geometry, so it is indrawn()while it is not incarried.standingat line 1028 is!drawn().all(|(_, b)| carried.contains(...)), so it can no longer be false whenever an unplaced object shares the group.Failure scenario: a Building layer where object A is a multi-part volume carried by its parts, and object B is a volume with no lon/lat place. Before this PR, B had no geometry,
drawn()was just A's parts, all carried, sostandingwas false. Nowdrawn()also contains B, which isn't carried, sostandingbecomes true and A is drawn differently because of an object that draws nothing.Suggested fix, at line 1024: make
drawnexclude unconverted rows, ascarrieddoes:Confidence: medium-high from reading the code; I haven't run a city model through it.
Category: bug
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 in 03a577f:
drawnnow leaves out unconverted rows too, matchingcarried, so an object kept with no place (which draws nothing) no longer decides whether its group stands.