63 WKBPoint25D = 0x80000001,
75 case WKBMultiPoint:
return WKBPoint;
76 case WKBMultiLineString:
return WKBLineString;
77 case WKBMultiPolygon:
return WKBPolygon;
78 case WKBMultiPoint25D:
return WKBPoint25D;
79 case WKBMultiLineString25D:
return WKBLineString25D;
80 case WKBMultiPolygon25D:
return WKBPolygon25D;
89 case WKBPoint25D:
return WKBPoint;
90 case WKBLineString25D:
return WKBLineString;
91 case WKBPolygon25D:
return WKBPolygon;
92 case WKBMultiPoint25D:
return WKBMultiPoint;
93 case WKBMultiLineString25D:
return WKBMultiLineString;
94 case WKBMultiPolygon25D:
return WKBMultiPolygon;
103 case WKBUnknown:
return 0;
104 case WKBNoGeometry:
return 0;
105 case WKBPoint25D:
return 3;
106 case WKBLineString25D:
return 3;
107 case WKBPolygon25D:
return 3;
108 case WKBMultiPoint25D:
return 3;
109 case WKBMultiLineString25D:
return 3;
110 case WKBMultiPolygon25D:
return 3;
129 case Point:
return "Point";
130 case Line:
return "Line";
131 case Polygon:
return "Polygon";
132 case UnknownGeometry:
return "Unknown geometry";
133 case NoGeometry:
return "No geometry";
134 default:
return "Invalid type";
139 static const char *featureType(
WkbType type )
143 case WKBUnknown:
return "WKBUnknown";
144 case WKBPoint:
return "WKBPoint";
145 case WKBLineString:
return "WKBLineString";
146 case WKBPolygon:
return "WKBPolygon";
147 case WKBMultiPoint:
return "WKBMultiLineString";
148 case WKBMultiPolygon:
return "WKBMultiPolygon";
149 case WKBNoGeometry:
return "WKBNoGeometry";
150 case WKBPoint25D:
return "WKBPoint25D";
151 case WKBLineString25D:
return "WKBLineString25D";
152 case WKBPolygon25D:
return "WKBPolygon25D";
153 case WKBMultiPoint25D:
return "WKBMultiPoint25D";
154 case WKBMultiLineString25D:
return "WKBMultiLineString25D";
155 case WKBMultiPolygon25D:
return "WKBMultiPolygon25D";
156 default:
return "invalid wkbtype";
164 { 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
197 DegreesMinutesSeconds = 2,
198 DegreesDecimalMinutes = 2,
206 static UnitType fromLiteral( QString literal,
QGis::UnitType defaultType = UnknownUnit );
217 ProviderExtentCalcEvent = ( QEvent::User + 1 ),
220 ProviderCountCalcEvent
227 static const char *qgisUnitTypes[];
252 return QString::number( a,
'f', 17 ).remove( QRegExp(
"\\.?0+$" ) );
258 inline bool qgsDoubleNear(
double a,
double b,
double epsilon = 4 * DBL_EPSILON )
260 const double diff = a - b;
261 return diff > -epsilon && diff <= epsilon;
275 double ar = frexp( a, &aexp );
276 double br = frexp( b, &bexp );
278 return aexp == bexp &&
279 qRound( ar * pow( 10.0, significantDigits ) ) == qRound( br * pow( 10.0, significantDigits ) ) ;
303 void CORE_EXPORT
qgsFree(
void *ptr );
308 extern CORE_EXPORT
const QString
GEOWKT;
312 extern CORE_EXPORT
const QString
GEOPROJ4;
333 extern CORE_EXPORT
const QString
GEO_NONE;
353 # define QGISEXTERN extern "C" __declspec( dllexport )
356 # pragma warning(disable:4190)
359 # define QGISEXTERN extern "C"