[geos-commits] r2227 - trunk/source/io
svn_geos at osgeo.org
svn_geos at osgeo.org
Wed Nov 26 14:25:04 EST 2008
Author: pramsey
Date: 2008-11-26 14:25:04 -0500 (Wed, 26 Nov 2008)
New Revision: 2227
Modified:
trunk/source/io/WKBReader.cpp
Log:
Allow readpoint to look at input dimension and fill higher ordinates. (#217)
Modified: trunk/source/io/WKBReader.cpp
===================================================================
--- trunk/source/io/WKBReader.cpp 2008-11-26 19:06:56 UTC (rev 2226)
+++ trunk/source/io/WKBReader.cpp 2008-11-26 19:25:04 UTC (rev 2227)
@@ -254,7 +254,7 @@
bool hasSRID = ((typeInt & 0x20000000) != 0);
#if DEBUG_WKB_READER
- cout<<"WKB hasSRID: "<<hasZ<<endl;
+ cout<<"WKB hasSRID: "<<hasSRID<<endl;
#endif
int SRID = 0;
@@ -303,7 +303,11 @@
WKBReader::readPoint()
{
readCoordinate();
- return factory.createPoint(Coordinate(ordValues[0], ordValues[1]));
+ if(inputDimension == 3){
+ return factory.createPoint(Coordinate(ordValues[0], ordValues[1], ordValues[2]));
+ }else{
+ return factory.createPoint(Coordinate(ordValues[0], ordValues[1]));
+ }
}
LineString *
More information about the geos-commits
mailing list