18 #ifndef QGSCOORDINATEREFERENCESYSTEM_H 19 #define QGSCOORDINATEREFERENCESYSTEM_H 90 bool createFromId(
const long theId,
CrsType theType = PostgisCrsId );
99 bool createFromOgcWmsCrs(
QString theCrs );
107 bool createFromSrid(
const long theSrid );
119 bool createFromWkt(
const QString &theWkt );
129 bool createFromSrsId(
const long theSrsId );
157 bool createFromProj4(
const QString &theProjString );
166 bool createFromString(
const QString &theDefinition );
181 bool createFromUserInput(
const QString &theDefinition );
191 static void setupESRIWktFix();
194 bool isValid()
const;
218 long findMatchingProj();
233 bool readXML(
const QDomNode & theNode );
276 long postgisSrid()
const;
300 QString projectionAcronym()
const;
307 QString ellipsoidAcronym()
const;
329 bool geographicFlag()
const;
334 bool axisInverted()
const;
344 void setValidationHint(
const QString& html );
359 bool saveAsUserCRS(
const QString& name );
362 QString geographicCRSAuthId()
const;
378 static QString proj4FromSrsId(
const int theSrsId );
383 void setInternalId(
long theSrsId );
387 void setSrid(
long theSrid );
391 void setDescription(
const QString& theDescription );
403 void setProj4String(
const QString& theProj4String );
408 void setGeographicFlag(
bool theGeoFlag );
413 void setEpsg(
long theEpsg );
418 void setAuthId(
const QString& theID );
422 void setProjectionAcronym(
const QString& theProjectionAcronym );
426 void setEllipsoidAcronym(
const QString& theEllipsoidAcronym );
440 RecordMap getRecord(
const QString& theSql );
444 static int openDb(
const QString& path,
sqlite3 **db,
bool readonly =
true );
469 long getRecordCount();
484 static bool syncDatumTransform(
const QString& dbPath );
487 mutable int mAxisInverted;
496 QString mySummary(
"\n\tSpatial Reference System:" );
497 mySummary +=
"\n\t\tDescription : ";
504 mySummary +=
"Undefined";
506 mySummary +=
"\n\t\tProjection : ";
513 mySummary +=
"Undefined";
516 mySummary +=
"\n\t\tEllipsoid : ";
523 mySummary +=
"Undefined";
526 mySummary +=
"\n\t\tProj4String : ";
533 mySummary +=
"Undefined";
539 #endif // QGSCOORDINATEREFERENCESYSTEM_H bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
std::ostream & operator<<(std::ostream &os, const QgsCoordinateReferenceSystem &r)
Output stream operator.
QString ellipsoidAcronym() const
Returns the ellipsoid acronym for the ellipsoid used by the CRS.
QByteArray toLocal8Bit() const
QString projectionAcronym() const
Returns the projection acronym for the projection used by the CRS.
Class for storing a coordinate reference system (CRS)
UnitType
Map units that qgis supports.
QString description() const
Returns the descriptive name of the CRS, eg "WGS 84" or "GDA 94 / Vicgrid94".
void(* CUSTOM_CRS_VALIDATION)(QgsCoordinateReferenceSystem &)
void * OGRSpatialReferenceH
QString toProj4() const
Returns a Proj4 string representation of this CRS.