7 #include "projection.h"
15 GeoTIFF(const QString
&path
);
17 bool isValid() const {return _projection
.isValid() && _transform
.isValid();}
18 const QString
&errorString() const {return _errorString
;}
20 const Projection
&projection() const {return _projection
;}
21 const Transform
&transform() const {return _transform
;}
32 quint32 tiepointCount
;
37 Ctx() : scale(0), tiepoints(0), tiepointCount(0), matrix(0), keys(0),
41 bool readEntry(TIFFFile
&file
, Ctx
&ctx
) const;
42 bool readIFD(TIFFFile
&file
, quint32
&offset
, Ctx
&ctx
) const;
43 bool readScale(TIFFFile
&file
, quint32 offset
, PointD
&scale
) const;
44 bool readTiepoints(TIFFFile
&file
, quint32 offset
, quint32 count
,
45 QList
<ReferencePoint
> &points
) const;
46 bool readMatrix(TIFFFile
&file
, quint32 offset
, double matrix
[16]) const;
47 bool readKeys(TIFFFile
&file
, Ctx
&ctx
, QMap
<quint16
, Value
> &kv
) const;
48 bool readGeoValue(TIFFFile
&file
, quint32 offset
, quint16 index
,
51 const GCS
*gcs(QMap
<quint16
, Value
> &kv
);
52 Projection::Method
method(QMap
<quint16
, Value
> &kv
);
53 bool geographicModel(QMap
<quint16
, Value
> &kv
);
54 bool projectedModel(QMap
<quint16
, Value
> &kv
);
57 Projection _projection
;