Removed the Point::wkt() and Point::dump_perl() methods.
Added to_string() for the basis Eigen vector types.
This commit is contained in:
@@ -230,19 +230,6 @@ Polygon::centroid() const
|
||||
return Point(x_temp/(6*area_temp), y_temp/(6*area_temp));
|
||||
}
|
||||
|
||||
std::string
|
||||
Polygon::wkt() const
|
||||
{
|
||||
std::ostringstream wkt;
|
||||
wkt << "POLYGON((";
|
||||
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();
|
||||
}
|
||||
|
||||
// find all concave vertices (i.e. having an internal angle greater than the supplied angle)
|
||||
// (external = right side, thus we consider ccw orientation)
|
||||
Points
|
||||
|
||||
Reference in New Issue
Block a user