Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#216 closed defect (fixed)

WKBWriter does not write 3D values correctly

Reported by: jbronn Owned by: geos-devel@…
Priority: major Milestone: 3.1.0
Component: Core Version: main
Severity: Critical Keywords: wkbwriter 3d z
Cc:

Description

I've been having much difficulty with the WKBWriter class as I could not get it to produce correct 3D WKB/HEX values. Turns out that WKBWriter::writeCoordinate always outputs the X value in place of the Z coordinate.

Attached is a patch and a C API demonstration of the problem.

Attachments (2)

wkbwriter_3d_fix.diff (431 bytes ) - added by jbronn 15 years ago.
z_problems.c (1.8 KB ) - added by jbronn 15 years ago.
C API demonstration of X coordinates being serialized in place of Z

Download all attachments as: .zip

Change History (5)

by jbronn, 15 years ago

Attachment: wkbwriter_3d_fix.diff added

by jbronn, 15 years ago

Attachment: z_problems.c added

C API demonstration of X coordinates being serialized in place of Z

comment:1 by pramsey, 15 years ago

Resolution: fixed
Status: newclosed

Committed to trunk at r2228

comment:2 by (none), 15 years ago

Milestone: 3.1.0

Milestone 3.1.0 deleted

comment:3 by pramsey, 15 years ago

Milestone: 3.1.0
Note: See TracTickets for help on using tickets.