Repository navigation
Point and Polyline Vector Rendering – Generalize the vector render scene - #106
Conversation
- Store point, polyline, and polygon geometry in backend-neutral flat buffers - Preserve source feature ranges through scene construction and reprojection - Cover multipart, curved, empty, and mixed vector geometry Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
Reprojected polylines can incorrectly cross Greenwich instead of the antimeridian, and copy-assignment allocation failures can leave part ranges outside coordinate storage.
2 open issues
What changed in this PR
Generalizes Core’s backend-neutral render scenes for future point and polyline rendering while keeping ActiveX polygon-only.
Changes:
- Adds contiguous point/polyline storage and per-feature geometry ranges.
- Extends geometry conversion and reprojection across supported families.
- Adds regression tests and updates architecture documentation.
Builds and tests were not run during this review.
| File | Description |
|---|---|
| tests/MapWinGIS.Core.Tests/VectorRenderSceneTests.cpp | Tests geometry conversion, buffers, and feature ranges. |
| tests/MapWinGIS.Core.Tests/MapRenderSceneTests.cpp | Tests mixed layers and reprojection. |
| src/MapWinGIS.Core/src/rendering/VectorRenderScene.cpp | Converts points, lines, and curves into scene storage. |
| src/MapWinGIS.Core/src/rendering/MapRenderScene.cpp | Transforms all geometry families and preserves polygon ranges. |
| src/MapWinGIS.Core/src/map/MapView.cpp | Recognizes non-polygon scenes as nonempty. |
| src/MapWinGIS.Core/src/internal/VectorRenderSceneBuilder.h | Updates scene-building contracts. |
| src/MapWinGIS.Core/include/mapwingis/rendering/VectorRenderScene.h | Exposes generalized buffers and feature ranges. |
| src/MapWinGIS.ActiveX/MapWinGISControl.cpp | Retains polygon-only loading. |
| README.md | Describes generalized scenes and renderer limitations. |
| docs/ARCHITECTURE.md | Documents storage and reprojection changes. |
| .ai/memory/architecture/core-library.md | Updates shared scene architecture notes. |
Review effort: Balanced
- Make polyline copy assignment use copy-and-swap. - Split projected polylines at the antimeridian. - Update feature ranges and add regression coverage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Julian-MW
left a comment
There was a problem hiding this comment.
Automated review. Final decision is with the human reviewer.
- Densify projected lines to distinguish long segments from seam crossings. - Track longitude worlds across exact seam vertices. - Rebuild invalid scene extents from retained finite geometry. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Densify near-seam Greenwich-crossing lines before seam normalization. - Preserve vertices that follow the antimeridian. - Cover near-seam and seam-corner regressions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The endpoint-only check can reverse a projected line’s path through Greenwich instead of across the antimeridian, requiring source-midpoint validation and a regression test.
1 open issue
2 resolved since last review
Review effort: Balanced


Motivation and context
Generalize the backend-neutral Core render scene so later phases can render points and polylines without duplicating OGR conversion or breaking polygon behavior.
Key design decisions
Validation
Dependencies
None. This PR is the first implementation phase and targets
development.