Opened 14 years ago
Closed 14 years ago
#345 closed defect (fixed)
CoordinateArraySequence / WKT Reader does not handle dimension properly
Reported by: | warmerdam | Owned by: | warmerdam |
---|---|---|---|
Priority: | major | Milestone: | 3.3.0 |
Component: | Core | Version: | main |
Severity: | Unassigned | Keywords: | dimension |
Cc: |
Description
The CoordinateArraySequence class always returns a dimension of 3, even if 2 was passed to the CoordinateArraySequenceFactory.
Change History (3)
comment:1 by , 14 years ago
Status: | new → assigned |
---|
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
some very minor testing added (r2993).
Note:
See TracTickets
for help on using tickets.
I have adjusted the CoordinateSequenceArray class to maintain a dimension internally, though it does not actually affect how many dimensions exist in the coordinates (always three). Also updated the WKTReader class to try and preserve the dimension from WKT input. Some tests needed to be altered slightly due to a ambiguity with creating a coordinate sequence with arguments (0,n) to create. The zero could be a collection pointer, or a size_t 0. Changes in trunk only (r2990).
I'm keeping this open a bit longer to consider some fine tuning, and adding specific dimension related tests.
Somewhat related tickets: #311, #341, #292