Update of /cvsroot/playerstage/code/player/server/drivers/vectormap
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1298/server/drivers/vectormap

Modified Files:
        dbconn.cc 
Log Message:
applied
[ 1895961 ] CVS: postgis cannot be compiled with older g++


Index: dbconn.cc
===================================================================
RCS file: /cvsroot/playerstage/code/player/server/drivers/vectormap/dbconn.cc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** dbconn.cc   15 Feb 2008 08:42:37 -0000      1.5
--- dbconn.cc   18 Feb 2008 20:41:56 -0000      1.6
***************
*** 155,168 ****
    for (int i=0; i<num_rows; ++i)
    {
!     FeatureDataHolder fd(string(PQgetvalue(res, i, 0)));
      uint32_t length = PQgetlength(res, i, 1);
      uint8_t * wkb = new uint8_t[length];
      assert(wkb);
      length = Text2Bin(PQgetvalue(res, i, 1), wkb, length);
!     fd.wkb.assign(wkb, wkb + length);
      delete []wkb;
!     fd.attrib = string(PQgetvalue(res, i, 2));
  
!     data.features.push_back(fd);
    }
  
--- 155,170 ----
    for (int i=0; i<num_rows; ++i)
    {
!     FeatureDataHolder * fd = new FeatureDataHolder(string(PQgetvalue(res, i, 
0)));
!     assert(fd);
      uint32_t length = PQgetlength(res, i, 1);
      uint8_t * wkb = new uint8_t[length];
      assert(wkb);
      length = Text2Bin(PQgetvalue(res, i, 1), wkb, length);
!     fd->wkb.assign(wkb, wkb + length);
      delete []wkb;
!     fd->attrib = string(PQgetvalue(res, i, 2));
  
!     data.features.push_back(*fd);
!     delete fd;
    }
  


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to