[geos-commits] r2578 - trunk/source/io
svn_geos at osgeo.org
svn_geos at osgeo.org
Mon Jun 15 09:19:35 EDT 2009
Author: strk
Date: 2009-06-15 09:19:35 -0400 (Mon, 15 Jun 2009)
New Revision: 2578
Modified:
trunk/source/io/WKTWriter.cpp
Log:
Put CLocalizer in the correct function. Fixes #260 for the writing part.
Modified: trunk/source/io/WKTWriter.cpp
===================================================================
--- trunk/source/io/WKTWriter.cpp 2009-06-15 10:13:07 UTC (rev 2577)
+++ trunk/source/io/WKTWriter.cpp 2009-06-15 13:19:35 UTC (rev 2578)
@@ -143,7 +143,6 @@
}
string WKTWriter::writeFormatted(const Geometry *geometry) {
- CLocalizer clocale;
Writer sw;
writeFormatted(geometry, true, &sw);
return sw.toString();
@@ -153,7 +152,11 @@
writeFormatted(geometry, true, writer);
}
-void WKTWriter::writeFormatted(const Geometry *geometry, bool isFormatted, Writer *writer) {
+void
+WKTWriter::writeFormatted(const Geometry *geometry, bool isFormatted,
+ Writer *writer)
+{
+ CLocalizer clocale;
this->isFormatted=isFormatted;
formatter=createFormatter(geometry->getPrecisionModel());
appendGeometryTaggedText(geometry, 0, writer);
More information about the geos-commits
mailing list