mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[qt6] Allow using QCoordinateReferenceSystem in QMap
This commit is contained in:
parent
666fcda9b8
commit
81c372d0a5
@ -2584,3 +2584,20 @@ void QgsCoordinateReferenceSystem::invalidateCache( bool disableCache )
|
||||
}
|
||||
sCrsStringLock()->unlock();
|
||||
}
|
||||
|
||||
bool operator> ( const QgsCoordinateReferenceSystem &c1, const QgsCoordinateReferenceSystem &c2 )
|
||||
{
|
||||
return c1.d->mSrsId > c2.d->mSrsId;
|
||||
}
|
||||
bool operator< ( const QgsCoordinateReferenceSystem &c1, const QgsCoordinateReferenceSystem &c2 )
|
||||
{
|
||||
return c1.d->mSrsId < c2.d->mSrsId;
|
||||
}
|
||||
bool operator>= ( const QgsCoordinateReferenceSystem &c1, const QgsCoordinateReferenceSystem &c2 )
|
||||
{
|
||||
return c1.d->mSrsId >= c2.d->mSrsId;
|
||||
}
|
||||
bool operator<= ( const QgsCoordinateReferenceSystem &c1, const QgsCoordinateReferenceSystem &c2 )
|
||||
{
|
||||
return c1.d->mSrsId <= c2.d->mSrsId;
|
||||
}
|
||||
|
@ -983,6 +983,10 @@ class CORE_EXPORT QgsCoordinateReferenceSystem
|
||||
friend class TestQgsCoordinateReferenceSystem;
|
||||
friend class QgsPostgresProvider;
|
||||
friend class QgsCoordinateReferenceSystemRegistry;
|
||||
friend bool operator> ( const QgsCoordinateReferenceSystem &c1, const QgsCoordinateReferenceSystem &c2 );
|
||||
friend bool operator< ( const QgsCoordinateReferenceSystem &c1, const QgsCoordinateReferenceSystem &c2 );
|
||||
friend bool operator>= ( const QgsCoordinateReferenceSystem &c1, const QgsCoordinateReferenceSystem &c2 );
|
||||
friend bool operator<= ( const QgsCoordinateReferenceSystem &c1, const QgsCoordinateReferenceSystem &c2 );
|
||||
|
||||
bool createFromPostgisSrid( const long id );
|
||||
};
|
||||
@ -1035,6 +1039,11 @@ inline std::ostream &operator << ( std::ostream &os, const QgsCoordinateReferenc
|
||||
// Using streams we need to use local 8 Bit
|
||||
return os << mySummary.toLocal8Bit().data() << std::endl;
|
||||
}
|
||||
|
||||
bool operator> ( const QgsCoordinateReferenceSystem &c1, const QgsCoordinateReferenceSystem &c2 );
|
||||
bool operator< ( const QgsCoordinateReferenceSystem &c1, const QgsCoordinateReferenceSystem &c2 );
|
||||
bool operator>= ( const QgsCoordinateReferenceSystem &c1, const QgsCoordinateReferenceSystem &c2 );
|
||||
bool operator<= ( const QgsCoordinateReferenceSystem &c1, const QgsCoordinateReferenceSystem &c2 );
|
||||
#endif
|
||||
|
||||
#endif // QGSCOORDINATEREFERENCESYSTEM_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user