16 #ifndef QGSDISTANCEAREA_H
17 #define QGSDISTANCEAREA_H
50 void setEllipsoidalMode(
bool flag );
56 void setSourceCrs(
long srsid );
59 void setSourceAuthId( QString authid );
64 bool geographic() {
return mCoordTransform->sourceCrs().geographicFlag(); }
67 bool setEllipsoid(
const QString& ellipsoid );
71 bool setEllipsoid(
double semiMajor,
double semiMinor );
90 double measureLine(
const QList<QgsPoint>& points );
96 double measurePolygon(
const QList<QgsPoint>& points );
101 static QString textUnit(
double value,
int decimals,
QGis::UnitType u,
bool isArea,
bool keepBaseUnit =
false );
108 const unsigned char* measureLine(
const unsigned char* feature,
double* area,
bool hasZptr =
false );
110 const unsigned char* measurePolygon(
const unsigned char* feature,
double* area,
double* perimeter,
bool hasZptr =
false );
123 double* course1 = NULL,
double* course2 = NULL );
131 double computePolygonArea(
const QList<QgsPoint>& points );
133 double computePolygonFlatArea(
const QList<QgsPoint>& points );
139 void computeAreaInit();
162 double getQ(
double x );
163 double getQbar(
double x );