[geos-commits] r4126 - trunk/tests/unit/io
svn_geos at osgeo.org
svn_geos at osgeo.org
Mon Dec 14 03:54:47 PST 2015
Author: strk
Date: 2015-12-14 03:54:47 -0800 (Mon, 14 Dec 2015)
New Revision: 4126
Modified:
trunk/tests/unit/io/WKBReaderTest.cpp
Log:
Add test for parsing EWKB
Modified: trunk/tests/unit/io/WKBReaderTest.cpp
===================================================================
--- trunk/tests/unit/io/WKBReaderTest.cpp 2015-11-30 20:30:21 UTC (rev 4125)
+++ trunk/tests/unit/io/WKBReaderTest.cpp 2015-12-14 11:54:47 UTC (rev 4126)
@@ -261,6 +261,22 @@
ensure_equals(err, "ParseException: Premature end of HEX string");
}
+ // 9 - Extended HEXWKB (3dZ + srid)
+ template<>
+ template<>
+ void object::test<9>()
+ {
+ std::stringstream hexwkb;
+ hexwkb <<
+// SRID=4326;POINT(1 2 3)
+// NDR HEXEWKB
+"01010000A0E6100000000000000000F03F00000000000000400000000000000840";
+ std::string err;
+ GeomPtr gWKB(wkbreader.readHEX(hexwkb));
+ ensure_equals(gWKB->getSRID(), 4326);
+ ensure_equals(gWKB->getCoordinateDimension(), 3);
+ }
+
} // namespace tut
More information about the geos-commits
mailing list