[postgis-devel] [PostGIS] #1668: ST_AsText, ST_AsEWKT under Windows 64-bit PostGIS 64-bit is all screwy
PostGIS
trac at osgeo.org
Wed Mar 14 06:26:41 PDT 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: medium | Milestone: PostGIS 2.0.1
Component: postgis | Version: trunk
Keywords: mingw64 |
---------------------+------------------------------------------------------
Comment(by robe):
okay sadly none of these worked, however, I was able to find a good
workaround.
Taking tips from this:
http://stackoverflow.com/questions/8488671/unix-to-windows-alternative-to-
vsnprintf-to-determine-length
I used this function:
http://msdn.microsoft.com/en-us/library/w05tbk72%28VS.71%29.aspx
To determine the correct size to allocate. Just don't know how to make
this a conditional define.
so my workaround looks like this:
{{{
if ( len < 0 )
len = _vscprintf(fmt, ap2);/**Assume windows and compute space **/
}}}
That fixed my issue of being able to load large polygons with shp2pgsql.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1668#comment:43>
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