Removed the Point::wkt() and Point::dump_perl() methods.

Added to_string() for the basis Eigen vector types.
This commit is contained in:
bubnikv 2018-08-17 16:54:07 +02:00
parent 65011f9382
commit 5b94f53cd7
19 changed files with 33 additions and 157 deletions

View file

@ -196,18 +196,6 @@ bool Polyline::is_straight() const
return true;
}
std::string Polyline::wkt() const
{
std::ostringstream wkt;
wkt << "LINESTRING((";
for (Points::const_iterator p = this->points.begin(); p != this->points.end(); ++p) {
wkt << p->x() << " " << p->y();
if (p != this->points.end()-1) wkt << ",";
}
wkt << "))";
return wkt.str();
}
BoundingBox get_extents(const Polyline &polyline)
{
return polyline.bounding_box();