28 #ifndef __TERRALIB_VP_INTERNAL_LINETOPOLYGON_MEMORY_H
29 #define __TERRALIB_VP_INTERNAL_LINETOPOLYGON_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/MultiPolygon.h"
37 #include "../geometry/Polygon.h"
64 std::unique_ptr<
te::gm::MultiPolygon> line2Polygon(
te::gm::Geometry* geom);
66 void getPolygons(
te::gm::Geometry* geom, std::vector<
te::gm::Polygon*>& polygons);
68 void getPolygons(
te::gm::GeometryCollection* gc, std::vector<
te::gm::Polygon*>& polygons);
70 void getPolygons(
te::gm::LineString* l, std::vector<
te::gm::Polygon*>& polygons);
72 void getPolygons(
te::gm::Polygon* p, std::vector<
te::gm::Polygon*>& polygons);
78 #endif // __TERRALIB_VP_INTERNAL_LINETOPOLYGON_MEMORY_H