[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 18:33:55 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):

 Okay I made some progress.  Issue seems to be with vsnprintf.

 changed this line:
 http://trac.osgeo.org/postgis/browser/trunk/liblwgeom/stringbuffer.c#L211

 {{{
         /* Propogate any printing errors upwards (check errno for info) */
         //if ( len < 0 ) return len;
 }}}

 To

 {{{
 if (len < 0 ) len = 128;
 }}}

 and then the cunit out tests were passing and kml was no longer crashing
 and was also passing.  So the only cunit failing is the wkt_in for points.
 I screwed up my postgres some how so my postgres tests aren't running.  I
 think that's a separate issue.

 This msdn doc says that vsnprintf is deprecated --
 http://msdn.microsoft.com/en-us/library/1kt27hek.aspx

 But not sure if that only applies to VC++.  I tried replacing with the
 suggested: vsnprintf_s and that did not exist.  My next thought is to
 upgrade my C++.  I'm running 4.4.7 prerelease something or other so
 perhaps its fixed in later.

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