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

PostGIS trac at osgeo.org
Sat Mar 10 10:42:30 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  |  
---------------------+------------------------------------------------------

Comment(by robe):

 Nope -- with your solution, the wkt out tests works but the KML one still
 crashes.

 I think the issue is that you are not allocating space when len < 0

 So this line you have here
 {{{
 stringbuffer_makeroom(s, len + 1);
 }}}

 becomes
 {{{
 stringbuffer_makeroom(s, 0);
 }}}

 Which happens to work for the wkt out case because you make_room function
 overshoots adding an extra 2 or so above length

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1668#comment:18>
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