66 WKBPoint25D = 0x80000001,
76 static WkbType singleType( WkbType type );
80 static WkbType multiType( WkbType type );
84 static WkbType flatType( WkbType type );
88 static bool isSingleType( WkbType type );
92 static bool isMultiType( WkbType type );
96 static int wkbDimensions( WkbType type );
114 static const char *vectorGeometryType( GeometryType type );
117 static const char *featureType( WkbType type );
123 { UnknownDataType = 0, Byte = 1, UInt16 = 2, Int16 = 3, UInt32 = 4, Int32 = 5, Float32 = 6, Float64 = 7, CInt16 = 8, CInt32 = 9, CFloat32 = 10, CFloat64 = 11, ARGB32 = 12, ARGB32_Premultiplied = 13
156 DegreesMinutesSeconds = 2,
157 DegreesDecimalMinutes = 2,
180 static double permissiveToDouble(
QString string,
bool& ok );
190 static int permissiveToInt(
QString string,
bool& ok );
198 ProviderExtentCalcEvent = ( QEvent::User + 1 ),
201 ProviderCountCalcEvent
230 static const char *qgisUnitTypes[];
238 #if QT_VERSION >= 0x050000
239 #define cast_to_fptr(f) f
268 inline bool qgsDoubleNear(
double a,
double b,
double epsilon = 4 * DBL_EPSILON )
270 const double diff = a - b;
271 return diff > -epsilon && diff <= epsilon;
285 double ar = frexp( a, &aexp );
286 double br = frexp( b, &bexp );
288 return aexp == bexp &&
289 qRound( ar * pow( 10.0, significantDigits ) ) == qRound( br * pow( 10.0, significantDigits ) );
297 return x < 0.0 ? std::ceil( x - 0.5 ) : std::floor( x + 0.5 );
310 void CORE_EXPORT *
qgsMalloc(
size_t size );
318 void CORE_EXPORT *
qgsCalloc(
size_t nmemb,
size_t size );
323 void CORE_EXPORT
qgsFree(
void *ptr );
377 #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) || defined(__clang__)
378 #define Q_NOWARN_DEPRECATED_PUSH \
379 _Pragma("GCC diagnostic push") \
380 _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"");
381 #define Q_NOWARN_DEPRECATED_POP \
382 _Pragma("GCC diagnostic pop");
383 #elif defined(_MSC_VER)
384 #define Q_NOWARN_DEPRECATED_PUSH \
385 __pragma(warning(push)) \
386 __pragma(warning(disable:4996))
387 #define Q_NOWARN_DEPRECATED_POP \
388 __pragma(warning(pop))
390 #define Q_NOWARN_DEPRECATED_PUSH
391 #define Q_NOWARN_DEPRECATED_POP
396 # define QGISEXTERN extern "C" __declspec( dllexport )
399 # pragma warning(disable:4190)
402 # if defined(__GNUC__) || defined(__clang__)
403 # define QGISEXTERN extern "C" __attribute__ ((visibility ("default")))
405 # define QGISEXTERN extern "C"
static const char * QGIS_VERSION
CORE_EXPORT QString qgsVsiPrefix(const QString &path)
static double DEFAULT_HIGHLIGHT_BUFFER_MM
Default highlight buffer in mm.
static const QColor DEFAULT_HIGHLIGHT_COLOR
Default highlight color.
UnitType
Map units that qgis supports.
UserEvent
User defined event types.
static const double DEFAULT_IDENTIFY_RADIUS
Old search radius in % of canvas width.
The QGis class provides global constants for use throughout the application.
WkbType
Used for symbology operations.
QString & remove(int position, int n)
void CORE_EXPORT * qgsCalloc(size_t nmemb, size_t size)
Allocates memory for an array of nmemb elements of size bytes each and returns a pointer to the alloc...
QMap< QString, QString > QgsStringMap
bool qgsDoubleNear(double a, double b, double epsilon=4 *DBL_EPSILON)
bool qgsVariantLessThan(const QVariant &lhs, const QVariant &rhs)
double qgsRound(double x)
QString number(int n, int base)
CORE_EXPORT const QString GEO_NONE
Constant that holds the string representation for "No ellips/No CRS".
const double DEFAULT_SEGMENT_EPSILON
Default snapping tolerance for segments.
static const char * QGIS_DEV_VERSION
const int ELLPS_PREFIX_LEN
The length of the string "+ellps=".
static const float DEFAULT_MAPTOPIXEL_THRESHOLD
Default threshold between map coordinates and device coordinates for map2pixel simplification.
const long GEOCRS_ID
Magic number for a geographic coord sys in QGIS srs.db tbl_srs.srs_id.
CORE_EXPORT const QString GEOPROJ4
PROJ4 string that represents a geographic coord sys.
DataType
Raster data types.
void CORE_EXPORT qgsFree(void *ptr)
Frees the memory space pointed to by ptr.
unsigned long long qgssize
Qgssize is used instead of size_t, because size_t is stdlib type, unknown by SIP, and it would be har...
static const double DEFAULT_SEARCH_RADIUS_MM
Identify search radius in mm.
static const char * QGIS_RELEASE_NAME
QString qgsDoubleToString(const double &a, const int &precision=17)
const double DEFAULT_POINT_SIZE
Magic number that determines the default point size for point symbols.
const int USER_CRS_START_ID
Magick number that determines whether a projection crsid is a system (srs.db) or user (~/...
const long GEOSRID
Magic number for a geographic coord sys in POSTGIS SRID.
const double MINIMUM_POINT_SIZE
Magic number that determines the minimum allowable point size for point symbols.
bool qgsDoubleNearSig(double a, double b, int significantDigits=10)
const double DEFAULT_LINE_WIDTH
CORE_EXPORT const QString PROJECT_SCALES
const int LAT_PREFIX_LEN
The length of the string "+lat_1=".
void(*)() cast_to_fptr(void *p)
const int PROJ_PREFIX_LEN
The length of the string "+proj=".
static const int QGIS_VERSION_INT
void CORE_EXPORT * qgsMalloc(size_t size)
Allocates size bytes and returns a pointer to the allocated memory.
static double DEFAULT_HIGHLIGHT_MIN_WIDTH_MM
Default highlight line/outline minimum width in mm.
bool qgsVariantGreaterThan(const QVariant &lhs, const QVariant &rhs)
const long GEO_EPSG_CRS_ID
Magic number for a geographic coord sys in EpsgCrsId ID format.
CORE_EXPORT const QString GEO_EPSG_CRS_AUTHID
Geographic coord sys from EPSG authority.
CORE_EXPORT const QString GEOWKT
Wkt string that represents a geographic coord sys.