Ticket #1668 (closed defect: fixed)
ST_AsText, ST_AsEWKT under Windows 64-bit PostGIS 64-bit is all screwy
| Reported by: | robe | Owned by: | robe |
|---|---|---|---|
| Priority: | medium | Milestone: | PostGIS 2.0.4 |
| Component: | postgis | Version: | trunk |
| Keywords: | mingw64, history | Cc: | woodbri |
Description
I was willing to dismiss this as something I was doing wrong during compile, when I tried compiling PostGIS 1.5 under my mingw64 and discovered that it did not exhibit the same screwy behavior. So now I'm not sure where the error is.
The PostGIS 1.5 64-bit compiled version doesn't have issue with ST_AsText. Here is an an example:
SELECT ST_AsText(ST_Buffer(ST_GeomFromText('POINT(1 2)',4326),1,'quad_segs=3'));
-- under PostGIS 1.5 64-bit mingw64
POLYGON((2 2,1.86602540378444 1.5,1.5 1.13397459621556,1 1,0.500000000000002 1.13397459621556,0.133974596215563 1.5,0 2,0.133974596215559 2.5,0.499999999999997 2.86602540378444,0.999999999999995 3,1.5 2.86602540378444,1.86602540378444 2.50000000000001,2 2))
-- under PostGIS 2.0.0beta2 64-bit mingw64
POLYGON((2 2,1.86602540378444 1.5,1.5 1.13397459621556,1 1,0.500000000000002 1.13397459621556,0.133974596215563 1.5,0 2, 2.5, , 3,1.5 2.86602540378444,1.86602540378444 2.50000000000001,2 2))
Note the ,s with no numbers.
I think the underlying geometry is fine, because if I do an ST_AsGML (my 32-bit and 64-bit installs of PostGIS 2.0.0 agree)
Change History
Note: See
TracTickets for help on using
tickets.
