void object::test<15>() { GeometryPtr geo = reader_.read("LINESTRING (0 0, 5 5, 10 5, 10 10)"); ensure( geo != 0 ); LineStringPtr line = dynamic_cast<LineStringPtr>(geo); ensure(line != 0); ensure( !line->isEmpty() ); ensure( !line->isClosed() ); ensure( !line->isRing() ); // FREE TESTED LINESTRING factory_.destroyGeometry(line); }
void object::test<15>() { GeometryPtr geo = reader_.read("LINESTRING (0 0, 5 5, 10 5, 10 10)"); ensure( geo != nullptr ); LineStringPtr line = dynamic_cast<LineStringPtr>(geo); ensure(line != nullptr); ensure( !line->isEmpty() ); ensure( !line->isClosed() ); ensure( !line->isRing() ); ensure( line->getCoordinateDimension() == 2 ); // FREE TESTED LINESTRING factory_->destroyGeometry(line); }