Ilwis-Objects  1.0
GIS and Remote Sensing framework for data access and processing
All Classes Functions Enumerations Pages
geometryhelper.h
1 #ifndef GEOMETRYHELPER_H
2 #define GEOMETRYHELPER_H
3 
4 namespace geos {
5 namespace geom {
6  class Geometry;
7 }
8 }
9 
10 namespace Ilwis {
11 class KERNELSHARED_EXPORT GeometryHelper{
12  public:
13  static QString toWKT(const geos::geom::Geometry* geom);
14  static geos::geom::Geometry* fromWKT(const QString &wkt) throw(geos::io::ParseException);
15 
16  static IlwisTypes geometryType(const geos::geom::Geometry* geom);
17 
18  static void transform(geos::geom::Geometry* geom, const ICoordinateSystem& source, const ICoordinateSystem& target);
19 
20  static Ilwis::CoordinateSystem* getCoordinateSystem(geos::geom::Geometry* geom);
21 
22  static void setCoordinateSystem(geos::geom::Geometry* geom, Ilwis::CoordinateSystem* csy);
23 };
24 
25 }
26 
27 #endif // GEOMETRYHELPER_H