Repository navigation
Bound compact display of wrapped geometries - #228
Open
Sinkleberg wants to merge 1 commit into
Open
Sinkleberg wants to merge 1 commit into
Sinkleberg wants to merge 1 commit into
Conversation
Assisted-by: Codex
asinghvi17-bot
added a commit
to asinghvi17-bot/GeoInterface.jl
that referenced
this pull request
Nov 17, 2026
…t check - Negative widths (PrettyTables, displaysize (-1, -1)) use the bounded form as at JuliaGeo#228 again; drop the unconstrained-width native display and the foreign-child detection, so hidden children are not read or cloned. - Guard the optional coordinate formatting so a backend without indexed getcoord keeps the display it already produced. - Merge _may_fit_safely into _own_str; drop the nested try/catch in render and the unused isreadable method. - Tests: XYPoint without getcoord, width -1 reads only visible children. Harness: Claude Code Model: claude-sonnet-5-5 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
asinghvi17-bot
added a commit
to asinghvi17-bot/GeoInterface.jl
that referenced
this pull request
Nov 17, 2026
- Count children as Int, so backends that count and index with other integer types (UInt) are shown as at JuliaGeo#228. - Drop the budgeted IO: what fits is already bounded by the fit check, so a display that does not fit is rejected by its width, not by an exception. Check for an own display only for what fits, as that lookup is the slowest part of a rejection. - Drop the coordinates special case for foreign points: they are shown by their own compact display as at JuliaGeo#228, formatted once. - Test an unsigned-integer line. Harness: Claude Code Model: claude-sonnet-5-5 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Showing a wrapper around a foreign polygon could format every coordinate before the REPL shortened the output. Compact and limited displays now fetch just the children they show and stop expanding nested geometries when space runs out.
On a synthetic 10,000-point polygon with a 32-column limited display, child reads fell from 10,001 to one. The full package suite passed on Julia 1.10.13, including plotting tests and doctests.
Closes #204.