[geos-devel] [GEOS] #610: geos 3.3.6 : WKTReader fails on POINT(0 0) (MSVC 2008, W7)
GEOS
geos-trac at osgeo.org
Fri Jan 11 05:48:32 PST 2013
#610: geos 3.3.6 : WKTReader fails on POINT(0 0) (MSVC 2008, W7)
------------------------+---------------------------------------------------
Reporter: gt75 | Owner: geos-devel@…
Type: defect | Status: new
Priority: major | Milestone: 3.3.7
Component: Default | Version: 3.3.6
Severity: Unassigned | Keywords:
------------------------+---------------------------------------------------
Simple program fails with heap corruption error.
namespace ggm = geos::geom;
namespace gio = geos::io;
ggm::PrecisionModel *pm = new
ggm::PrecisionModel(PrecisionModel::FLOATING);
ggm::GeometryFactory *gf = new ggm::GeometryFactory(pm);
gio::WKTReader *wktReader = new gio::WKTReader(gf);
const std::string str = " POINT (0 0) ";
ggm::Geometry *geom = wktReader->read(str); //HERE IT FAILS
delete wktReader;
--
Ticket URL: <http://trac.osgeo.org/geos/ticket/610>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
More information about the geos-devel
mailing list