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();
275 long postgisSrid()
const;
292 QString projectionAcronym()
const;
298 QString ellipsoidAcronym()
const;
317 bool geographicFlag()
const;
322 bool axisInverted()
const;
333 void setValidationHint(
const QString& html );
348 bool saveAsUserCRS(
const QString& name );
351 QString geographicCRSAuthId()
const;
367 static QString proj4FromSrsId(
const int theSrsId );
372 void setInternalId(
long theSrsId );
376 void setSrid(
long theSrid );
380 void setDescription(
const QString& theDescription );
392 void setProj4String(
const QString& theProj4String );
397 void setGeographicFlag(
bool theGeoFlag );
402 void setEpsg(
long theEpsg );
407 void setAuthId(
const QString& theID );
411 void setProjectionAcronym(
const QString& theProjectionAcronym );
415 void setEllipsoidAcronym(
const QString& theEllipsoidAcronym );
429 RecordMap getRecord(
const QString& theSql );
433 static int openDb(
const QString& path,
sqlite3 **db,
bool readonly =
true );
458 long getRecordCount();
473 static bool syncDatumTransform(
const QString& dbPath );
476 mutable int mAxisInverted;
485 QString mySummary(
"\n\tSpatial Reference System:" );
486 mySummary +=
"\n\t\tDescription : ";
493 mySummary +=
"Undefined";
495 mySummary +=
"\n\t\tProjection : ";
502 mySummary +=
"Undefined";
505 mySummary +=
"\n\t\tEllipsoid : ";
512 mySummary +=
"Undefined";
515 mySummary +=
"\n\t\tProj4String : ";
522 mySummary +=
"Undefined";
528 #endif // QGSCOORDINATEREFERENCESYSTEM_H
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
UnitType
Map units that qgis supports.
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
std::ostream & operator<<(std::ostream &os, const QgsCoordinateReferenceSystem &r)
Output stream operator.
QString ellipsoidAcronym() const
Get the Ellipsoid Acronym.
QByteArray toLocal8Bit() const
QString projectionAcronym() const
Get the Projection Acronym.
Class for storing a coordinate reference system (CRS)
QString description() const
Get the Description.
void(* CUSTOM_CRS_VALIDATION)(QgsCoordinateReferenceSystem &)
void * OGRSpatialReferenceH
QString toProj4() const
Get the Proj Proj4 string representation of this srs.