[postgis-devel] [PostGIS] #1668: ST_AsText, ST_AsEWKT under Windows 64-bit PostGIS 64-bit is all screwy

PostGIS trac at osgeo.org
Thu Mar 8 07:50:34 PST 2012


#1668: ST_AsText, ST_AsEWKT under Windows 64-bit PostGIS 64-bit is all screwy
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  high     |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  trunk        
 Keywords:  mingw64  |  
---------------------+------------------------------------------------------
 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)

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1668>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list