28 #ifndef __TERRALIB_VP_INTERNAL_POLYGONTOLINE_MEMORY_H
29 #define __TERRALIB_VP_INTERNAL_POLYGONTOLINE_MEMORY_H
32 #include "../common/Exception.h"
33 #include "../geometry/Geometry.h"
34 #include "../geometry/GeometryCollection.h"
35 #include "../geometry/LineString.h"
36 #include "../geometry/MultiLineString.h"
37 #include "../geometry/Polygon.h"
64 std::unique_ptr<
te::gm::MultiLineString> polygon2Line(
te::gm::Geometry* geom);
66 void getLines(
te::gm::Geometry* geom, std::vector<
te::gm::LineString*>& lines);
68 void getLines(
te::gm::GeometryCollection* gc, std::vector<
te::gm::LineString*>& lines);
70 void getLines(
te::gm::Polygon* p, std::vector<
te::gm::LineString*>& lines);
72 void getLines(
te::gm::LineString* l, std::vector<
te::gm::LineString*>& lines);
78 #endif // __TERRALIB_VP_INTERNAL_POLYGONTOLINE_MEMORY_H