00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #ifndef OGR_CORE_H_INCLUDED
00032 #define OGR_CORE_H_INCLUDED
00033
00034 #include "cpl_port.h"
00035 #include "gdal_version.h"
00036
00047 #if defined(__cplusplus) && !defined(CPL_SUPRESS_CPLUSPLUS)
00048 class CPL_DLL OGREnvelope
00049 {
00050 public:
00051 OGREnvelope() : MinX(0.0), MaxX(0.0), MinY(0.0), MaxY(0.0)
00052 {
00053 }
00054
00055 OGREnvelope(const OGREnvelope& oOther) :
00056 MinX(oOther.MinX),MaxX(oOther.MaxX), MinY(oOther.MinY), MaxY(oOther.MaxY)
00057 {
00058 }
00059
00060 double MinX;
00061 double MaxX;
00062 double MinY;
00063 double MaxY;
00064
00065 #ifdef HAVE_GCC_DIAGNOSTIC_PUSH
00066 #pragma GCC diagnostic push
00067 #pragma GCC diagnostic ignored "-Wfloat-equal"
00068 #endif
00069 int IsInit() const { return MinX != 0 || MinY != 0 || MaxX != 0 || MaxY != 0; }
00070
00071 #ifdef HAVE_GCC_DIAGNOSTIC_PUSH
00072 #pragma GCC diagnostic pop
00073 #endif
00074
00075 void Merge( OGREnvelope const& sOther ) {
00076 if( IsInit() )
00077 {
00078 MinX = MIN(MinX,sOther.MinX);
00079 MaxX = MAX(MaxX,sOther.MaxX);
00080 MinY = MIN(MinY,sOther.MinY);
00081 MaxY = MAX(MaxY,sOther.MaxY);
00082 }
00083 else
00084 {
00085 MinX = sOther.MinX;
00086 MaxX = sOther.MaxX;
00087 MinY = sOther.MinY;
00088 MaxY = sOther.MaxY;
00089 }
00090 }
00091 void Merge( double dfX, double dfY ) {
00092 if( IsInit() )
00093 {
00094 MinX = MIN(MinX,dfX);
00095 MaxX = MAX(MaxX,dfX);
00096 MinY = MIN(MinY,dfY);
00097 MaxY = MAX(MaxY,dfY);
00098 }
00099 else
00100 {
00101 MinX = MaxX = dfX;
00102 MinY = MaxY = dfY;
00103 }
00104 }
00105
00106 void Intersect( OGREnvelope const& sOther ) {
00107 if(Intersects(sOther))
00108 {
00109 if( IsInit() )
00110 {
00111 MinX = MAX(MinX,sOther.MinX);
00112 MaxX = MIN(MaxX,sOther.MaxX);
00113 MinY = MAX(MinY,sOther.MinY);
00114 MaxY = MIN(MaxY,sOther.MaxY);
00115 }
00116 else
00117 {
00118 MinX = sOther.MinX;
00119 MaxX = sOther.MaxX;
00120 MinY = sOther.MinY;
00121 MaxY = sOther.MaxY;
00122 }
00123 }
00124 else
00125 {
00126 MinX = 0;
00127 MaxX = 0;
00128 MinY = 0;
00129 MaxY = 0;
00130 }
00131 }
00132
00133 int Intersects(OGREnvelope const& other) const
00134 {
00135 return MinX <= other.MaxX && MaxX >= other.MinX &&
00136 MinY <= other.MaxY && MaxY >= other.MinY;
00137 }
00138
00139 int Contains(OGREnvelope const& other) const
00140 {
00141 return MinX <= other.MinX && MinY <= other.MinY &&
00142 MaxX >= other.MaxX && MaxY >= other.MaxY;
00143 }
00144 };
00145 #else
00146 typedef struct
00147 {
00148 double MinX;
00149 double MaxX;
00150 double MinY;
00151 double MaxY;
00152 } OGREnvelope;
00153 #endif
00154
00155
00160 #if defined(__cplusplus) && !defined(CPL_SURESS_CPLUSPLUS)
00161 class CPL_DLL OGREnvelope3D : public OGREnvelope
00162 {
00163 public:
00164 OGREnvelope3D() : OGREnvelope(), MinZ(0.0), MaxZ(0.0)
00165 {
00166 }
00167
00168 OGREnvelope3D(const OGREnvelope3D& oOther) :
00169 OGREnvelope(oOther),
00170 MinZ(oOther.MinZ), MaxZ(oOther.MaxZ)
00171 {
00172 }
00173
00174 double MinZ;
00175 double MaxZ;
00176
00177 #ifdef HAVE_GCC_DIAGNOSTIC_PUSH
00178 #pragma GCC diagnostic push
00179 #pragma GCC diagnostic ignored "-Wfloat-equal"
00180 #endif
00181 int IsInit() const { return MinX != 0 || MinY != 0 || MaxX != 0 || MaxY != 0 || MinZ != 0 || MaxZ != 0; }
00182 #ifdef HAVE_GCC_DIAGNOSTIC_PUSH
00183 #pragma GCC diagnostic pop
00184 #endif
00185
00186 void Merge( OGREnvelope3D const& sOther ) {
00187 if( IsInit() )
00188 {
00189 MinX = MIN(MinX,sOther.MinX);
00190 MaxX = MAX(MaxX,sOther.MaxX);
00191 MinY = MIN(MinY,sOther.MinY);
00192 MaxY = MAX(MaxY,sOther.MaxY);
00193 MinZ = MIN(MinZ,sOther.MinZ);
00194 MaxZ = MAX(MaxZ,sOther.MaxZ);
00195 }
00196 else
00197 {
00198 MinX = sOther.MinX;
00199 MaxX = sOther.MaxX;
00200 MinY = sOther.MinY;
00201 MaxY = sOther.MaxY;
00202 MinZ = sOther.MinZ;
00203 MaxZ = sOther.MaxZ;
00204 }
00205 }
00206 void Merge( double dfX, double dfY, double dfZ ) {
00207 if( IsInit() )
00208 {
00209 MinX = MIN(MinX,dfX);
00210 MaxX = MAX(MaxX,dfX);
00211 MinY = MIN(MinY,dfY);
00212 MaxY = MAX(MaxY,dfY);
00213 MinZ = MIN(MinZ,dfZ);
00214 MaxZ = MAX(MaxZ,dfZ);
00215 }
00216 else
00217 {
00218 MinX = MaxX = dfX;
00219 MinY = MaxY = dfY;
00220 MinZ = MaxZ = dfZ;
00221 }
00222 }
00223
00224 void Intersect( OGREnvelope3D const& sOther ) {
00225 if(Intersects(sOther))
00226 {
00227 if( IsInit() )
00228 {
00229 MinX = MAX(MinX,sOther.MinX);
00230 MaxX = MIN(MaxX,sOther.MaxX);
00231 MinY = MAX(MinY,sOther.MinY);
00232 MaxY = MIN(MaxY,sOther.MaxY);
00233 MinZ = MAX(MinZ,sOther.MinZ);
00234 MaxZ = MIN(MaxZ,sOther.MaxZ);
00235 }
00236 else
00237 {
00238 MinX = sOther.MinX;
00239 MaxX = sOther.MaxX;
00240 MinY = sOther.MinY;
00241 MaxY = sOther.MaxY;
00242 MinZ = sOther.MinZ;
00243 MaxZ = sOther.MaxZ;
00244 }
00245 }
00246 else
00247 {
00248 MinX = 0;
00249 MaxX = 0;
00250 MinY = 0;
00251 MaxY = 0;
00252 MinZ = 0;
00253 MaxZ = 0;
00254 }
00255 }
00256
00257 int Intersects(OGREnvelope3D const& other) const
00258 {
00259 return MinX <= other.MaxX && MaxX >= other.MinX &&
00260 MinY <= other.MaxY && MaxY >= other.MinY &&
00261 MinZ <= other.MaxZ && MaxZ >= other.MinZ;
00262 }
00263
00264 int Contains(OGREnvelope3D const& other) const
00265 {
00266 return MinX <= other.MinX && MinY <= other.MinY &&
00267 MaxX >= other.MaxX && MaxY >= other.MaxY &&
00268 MinZ <= other.MinZ && MaxZ >= other.MaxZ;
00269 }
00270 };
00271 #else
00272 typedef struct
00273 {
00274 double MinX;
00275 double MaxX;
00276 double MinY;
00277 double MaxY;
00278 double MinZ;
00279 double MaxZ;
00280 } OGREnvelope3D;
00281 #endif
00282
00283
00284 CPL_C_START
00285
00286 void CPL_DLL *OGRMalloc( size_t );
00287 void CPL_DLL *OGRCalloc( size_t, size_t );
00288 void CPL_DLL *OGRRealloc( void *, size_t );
00289 char CPL_DLL *OGRStrdup( const char * );
00290 void CPL_DLL OGRFree( void * );
00291
00292 #ifdef STRICT_OGRERR_TYPE
00293 typedef enum
00294 {
00295 OGRERR_NONE,
00296 OGRERR_NOT_ENOUGH_DATA,
00297 OGRERR_NOT_ENOUGH_MEMORY,
00298 OGRERR_UNSUPPORTED_GEOMETRY_TYPE,
00299 OGRERR_UNSUPPORTED_OPERATION,
00300 OGRERR_CORRUPT_DATA,
00301 OGRERR_FAILURE,
00302 OGRERR_UNSUPPORTED_SRS,
00303 OGRERR_INVALID_HANDLE,
00304 OGRERR_NON_EXISTING_FEATURE
00305 } OGRErr;
00306 #else
00307 typedef int OGRErr;
00308
00309 #define OGRERR_NONE 0
00310 #define OGRERR_NOT_ENOUGH_DATA 1
00311 #define OGRERR_NOT_ENOUGH_MEMORY 2
00312 #define OGRERR_UNSUPPORTED_GEOMETRY_TYPE 3
00313 #define OGRERR_UNSUPPORTED_OPERATION 4
00314 #define OGRERR_CORRUPT_DATA 5
00315 #define OGRERR_FAILURE 6
00316 #define OGRERR_UNSUPPORTED_SRS 7
00317 #define OGRERR_INVALID_HANDLE 8
00318 #define OGRERR_NON_EXISTING_FEATURE 9
00319
00320 #endif
00321
00322 typedef int OGRBoolean;
00323
00324
00325
00326
00327
00333 typedef enum
00334 {
00335 wkbUnknown = 0,
00337 wkbPoint = 1,
00338 wkbLineString = 2,
00340 wkbPolygon = 3,
00343 wkbMultiPoint = 4,
00344 wkbMultiLineString = 5,
00345 wkbMultiPolygon = 6,
00346 wkbGeometryCollection = 7,
00349 wkbCircularString = 8,
00351 wkbCompoundCurve = 9,
00352 wkbCurvePolygon = 10,
00355 wkbMultiCurve = 11,
00356 wkbMultiSurface = 12,
00357 wkbCurve = 13,
00358 wkbSurface = 14,
00359 wkbPolyhedralSurface = 15,
00361 wkbTIN = 16,
00363 wkbTriangle = 17,
00365 wkbNone = 100,
00366 wkbLinearRing = 101,
00368 wkbCircularStringZ = 1008,
00369 wkbCompoundCurveZ = 1009,
00370 wkbCurvePolygonZ = 1010,
00371 wkbMultiCurveZ = 1011,
00372 wkbMultiSurfaceZ = 1012,
00373 wkbCurveZ = 1013,
00374 wkbSurfaceZ = 1014,
00375 wkbPolyhedralSurfaceZ = 1015,
00376 wkbTINZ = 1016,
00377 wkbTriangleZ = 1017,
00379 wkbPointM = 2001,
00380 wkbLineStringM = 2002,
00381 wkbPolygonM = 2003,
00382 wkbMultiPointM = 2004,
00383 wkbMultiLineStringM = 2005,
00384 wkbMultiPolygonM = 2006,
00385 wkbGeometryCollectionM = 2007,
00386 wkbCircularStringM = 2008,
00387 wkbCompoundCurveM = 2009,
00388 wkbCurvePolygonM = 2010,
00389 wkbMultiCurveM = 2011,
00390 wkbMultiSurfaceM = 2012,
00391 wkbCurveM = 2013,
00392 wkbSurfaceM = 2014,
00393 wkbPolyhedralSurfaceM = 2015,
00394 wkbTINM = 2016,
00395 wkbTriangleM = 2017,
00397 wkbPointZM = 3001,
00398 wkbLineStringZM = 3002,
00399 wkbPolygonZM = 3003,
00400 wkbMultiPointZM = 3004,
00401 wkbMultiLineStringZM = 3005,
00402 wkbMultiPolygonZM = 3006,
00403 wkbGeometryCollectionZM = 3007,
00404 wkbCircularStringZM = 3008,
00405 wkbCompoundCurveZM = 3009,
00406 wkbCurvePolygonZM = 3010,
00407 wkbMultiCurveZM = 3011,
00408 wkbMultiSurfaceZM = 3012,
00409 wkbCurveZM = 3013,
00410 wkbSurfaceZM = 3014,
00411 wkbPolyhedralSurfaceZM = 3015,
00412 wkbTINZM = 3016,
00413 wkbTriangleZM = 3017,
00415 wkbPoint25D = 0x80000001,
00416 wkbLineString25D = 0x80000002,
00417 wkbPolygon25D = 0x80000003,
00418 wkbMultiPoint25D = 0x80000004,
00419 wkbMultiLineString25D = 0x80000005,
00420 wkbMultiPolygon25D = 0x80000006,
00421 wkbGeometryCollection25D = 0x80000007
00423 } OGRwkbGeometryType;
00424
00439 typedef enum
00440 {
00441 wkbVariantOldOgc,
00442 wkbVariantIso,
00443 wkbVariantPostGIS1
00444 } OGRwkbVariant;
00445
00446
00448 #ifndef GDAL_COMPILATION
00449 #define wkb25DBit 0x80000000
00450 #endif
00451
00453 #define wkbFlatten(x) OGR_GT_Flatten((OGRwkbGeometryType)(x))
00454
00458 #define wkbHasZ(x) (OGR_GT_HasZ(x) != 0)
00459
00463 #define wkbSetZ(x) OGR_GT_SetZ(x)
00464
00468 #define wkbHasM(x) (OGR_GT_HasM(x) != 0)
00469
00473 #define wkbSetM(x) OGR_GT_SetM(x)
00474
00475 #define ogrZMarker 0x21125711
00476
00477 const char CPL_DLL * OGRGeometryTypeToName( OGRwkbGeometryType eType );
00478 OGRwkbGeometryType CPL_DLL OGRMergeGeometryTypes( OGRwkbGeometryType eMain,
00479 OGRwkbGeometryType eExtra );
00480 OGRwkbGeometryType CPL_DLL OGRMergeGeometryTypesEx( OGRwkbGeometryType eMain,
00481 OGRwkbGeometryType eExtra,
00482 int bAllowPromotingToCurves );
00483 OGRwkbGeometryType CPL_DLL OGR_GT_Flatten( OGRwkbGeometryType eType );
00484 OGRwkbGeometryType CPL_DLL OGR_GT_SetZ( OGRwkbGeometryType eType );
00485 OGRwkbGeometryType CPL_DLL OGR_GT_SetM( OGRwkbGeometryType eType );
00486 OGRwkbGeometryType CPL_DLL OGR_GT_SetModifier( OGRwkbGeometryType eType, int bSetZ, int bSetM );
00487 int CPL_DLL OGR_GT_HasZ( OGRwkbGeometryType eType );
00488 int CPL_DLL OGR_GT_HasM( OGRwkbGeometryType eType );
00489 int CPL_DLL OGR_GT_IsSubClassOf( OGRwkbGeometryType eType,
00490 OGRwkbGeometryType eSuperType );
00491 int CPL_DLL OGR_GT_IsCurve( OGRwkbGeometryType );
00492 int CPL_DLL OGR_GT_IsSurface( OGRwkbGeometryType );
00493 int CPL_DLL OGR_GT_IsNonLinear( OGRwkbGeometryType );
00494 OGRwkbGeometryType CPL_DLL OGR_GT_GetCollection( OGRwkbGeometryType eType );
00495 OGRwkbGeometryType CPL_DLL OGR_GT_GetCurve( OGRwkbGeometryType eType );
00496 OGRwkbGeometryType CPL_DLL OGR_GT_GetLinear( OGRwkbGeometryType eType );
00497
00498 typedef enum
00499 {
00500 wkbXDR = 0,
00501 wkbNDR = 1
00502 } OGRwkbByteOrder;
00503
00504 #ifndef NO_HACK_FOR_IBM_DB2_V72
00505 # define HACK_FOR_IBM_DB2_V72
00506 #endif
00507
00508 #ifdef HACK_FOR_IBM_DB2_V72
00509 # define DB2_V72_FIX_BYTE_ORDER(x) ((((x) & 0x31) == (x)) ? ((x) & 0x1) : (x))
00510 # define DB2_V72_UNFIX_BYTE_ORDER(x) ((unsigned char) (OGRGeometry::bGenerate_DB2_V72_BYTE_ORDER ? ((x) | 0x30) : (x)))
00511 #else
00512 # define DB2_V72_FIX_BYTE_ORDER(x) (x)
00513 # define DB2_V72_UNFIX_BYTE_ORDER(x) (x)
00514 #endif
00515
00519 #define ALTER_NAME_FLAG 0x1
00520
00524 #define ALTER_TYPE_FLAG 0x2
00525
00529 #define ALTER_WIDTH_PRECISION_FLAG 0x4
00530
00535 #define ALTER_NULLABLE_FLAG 0x8
00536
00541 #define ALTER_DEFAULT_FLAG 0x10
00542
00546 #define ALTER_ALL_FLAG (ALTER_NAME_FLAG | ALTER_TYPE_FLAG | ALTER_WIDTH_PRECISION_FLAG | ALTER_NULLABLE_FLAG | ALTER_DEFAULT_FLAG)
00547
00548
00553 #define OGR_F_VAL_NULL 0x00000001
00554
00559 #define OGR_F_VAL_GEOM_TYPE 0x00000002
00560
00565 #define OGR_F_VAL_WIDTH 0x00000004
00566
00574 #define OGR_F_VAL_ALLOW_NULL_WHEN_DEFAULT 0x00000008
00575
00582 #define OGR_F_VAL_ALLOW_DIFFERENT_GEOM_DIM 0x00000010
00583
00588 #define OGR_F_VAL_ALL (0x7FFFFFFF & ~OGR_F_VAL_ALLOW_DIFFERENT_GEOM_DIM)
00589
00590
00591
00592
00593
00600 typedef enum
00601 { OFTInteger = 0, OFTIntegerList = 1, OFTReal = 2, OFTRealList = 3, OFTString = 4, OFTStringList = 5, OFTWideString = 6, OFTWideStringList = 7, OFTBinary = 8, OFTDate = 9, OFTTime = 10, OFTDateTime = 11, OFTInteger64 = 12, OFTInteger64List = 13,
00616 OFTMaxType = 13
00617 } OGRFieldType;
00618
00628 typedef enum
00629 { OFSTNone = 0,
00632 OFSTBoolean = 1,
00634 OFSTInt16 = 2,
00636 OFSTFloat32 = 3,
00637 OFSTMaxSubType = 3
00638 } OGRFieldSubType;
00639
00644 typedef enum
00645 {
00646 OJUndefined = 0,
00647 OJLeft = 1,
00648 OJRight = 2
00649 } OGRJustification;
00650
00651 #define OGRNullFID -1
00652 #define OGRUnsetMarker -21121
00653
00654
00655
00656
00657
00662 typedef union {
00663 int Integer;
00664 GIntBig Integer64;
00665 double Real;
00666 char *String;
00667
00668 struct {
00669 int nCount;
00670 int *paList;
00671 } IntegerList;
00672
00673 struct {
00674 int nCount;
00675 GIntBig *paList;
00676 } Integer64List;
00677
00678 struct {
00679 int nCount;
00680 double *paList;
00681 } RealList;
00682
00683 struct {
00684 int nCount;
00685 char **paList;
00686 } StringList;
00687
00688 struct {
00689 int nCount;
00690 GByte *paData;
00691 } Binary;
00692
00693 struct {
00694 int nMarker1;
00695 int nMarker2;
00696 } Set;
00697
00698 struct {
00699 GInt16 Year;
00700 GByte Month;
00701 GByte Day;
00702 GByte Hour;
00703 GByte Minute;
00704 GByte TZFlag;
00705
00706 GByte Reserved;
00707 float Second;
00708 } Date;
00709 } OGRField;
00710
00711 #define OGR_GET_MS(floatingpoint_sec) (int)(((floatingpoint_sec) - (int)(floatingpoint_sec)) * 1000 + 0.5)
00712
00713 int CPL_DLL OGRParseDate( const char *pszInput, OGRField *psOutput,
00714 int nOptions );
00715
00716
00717
00718
00719 #define OLCRandomRead "RandomRead"
00720 #define OLCSequentialWrite "SequentialWrite"
00721 #define OLCRandomWrite "RandomWrite"
00722 #define OLCFastSpatialFilter "FastSpatialFilter"
00723 #define OLCFastFeatureCount "FastFeatureCount"
00724 #define OLCFastGetExtent "FastGetExtent"
00725 #define OLCCreateField "CreateField"
00726 #define OLCDeleteField "DeleteField"
00727 #define OLCReorderFields "ReorderFields"
00728 #define OLCAlterFieldDefn "AlterFieldDefn"
00729 #define OLCTransactions "Transactions"
00730 #define OLCDeleteFeature "DeleteFeature"
00731 #define OLCFastSetNextByIndex "FastSetNextByIndex"
00732 #define OLCStringsAsUTF8 "StringsAsUTF8"
00733 #define OLCIgnoreFields "IgnoreFields"
00734 #define OLCCreateGeomField "CreateGeomField"
00735 #define OLCCurveGeometries "CurveGeometries"
00736 #define OLCMeasuredGeometries "MeasuredGeometries"
00737
00738 #define ODsCCreateLayer "CreateLayer"
00739 #define ODsCDeleteLayer "DeleteLayer"
00740 #define ODsCCreateGeomFieldAfterCreateLayer "CreateGeomFieldAfterCreateLayer"
00741 #define ODsCCurveGeometries "CurveGeometries"
00742 #define ODsCTransactions "Transactions"
00743 #define ODsCEmulatedTransactions "EmulatedTransactions"
00744 #define ODsCMeasuredGeometries "MeasuredGeometries"
00745
00746 #define ODrCCreateDataSource "CreateDataSource"
00747 #define ODrCDeleteDataSource "DeleteDataSource"
00748
00749
00750
00751
00756 #define OLMD_FID64 "OLMD_FID64"
00757
00758
00759
00760
00761
00766 typedef enum ogr_style_tool_class_id
00767 {
00768 OGRSTCNone = 0,
00769 OGRSTCPen = 1,
00770 OGRSTCBrush = 2,
00771 OGRSTCSymbol = 3,
00772 OGRSTCLabel = 4,
00773 OGRSTCVector = 5
00774 } OGRSTClassId;
00775
00779 typedef enum ogr_style_tool_units_id
00780 {
00781 OGRSTUGround = 0,
00782 OGRSTUPixel = 1,
00783 OGRSTUPoints = 2,
00784 OGRSTUMM = 3,
00785 OGRSTUCM = 4,
00786 OGRSTUInches = 5
00787 } OGRSTUnitId;
00788
00792 typedef enum ogr_style_tool_param_pen_id
00793 {
00794 OGRSTPenColor = 0,
00795 OGRSTPenWidth = 1,
00796 OGRSTPenPattern = 2,
00797 OGRSTPenId = 3,
00798 OGRSTPenPerOffset = 4,
00799 OGRSTPenCap = 5,
00800 OGRSTPenJoin = 6,
00801 OGRSTPenPriority = 7,
00802 OGRSTPenLast = 8
00803
00804 } OGRSTPenParam;
00805
00809 typedef enum ogr_style_tool_param_brush_id
00810 {
00811 OGRSTBrushFColor = 0,
00812 OGRSTBrushBColor = 1,
00813 OGRSTBrushId = 2,
00814 OGRSTBrushAngle = 3,
00815 OGRSTBrushSize = 4,
00816 OGRSTBrushDx = 5,
00817 OGRSTBrushDy = 6,
00818 OGRSTBrushPriority = 7,
00819 OGRSTBrushLast = 8
00820
00821 } OGRSTBrushParam;
00822
00823
00827 typedef enum ogr_style_tool_param_symbol_id
00828 {
00829 OGRSTSymbolId = 0,
00830 OGRSTSymbolAngle = 1,
00831 OGRSTSymbolColor = 2,
00832 OGRSTSymbolSize = 3,
00833 OGRSTSymbolDx = 4,
00834 OGRSTSymbolDy = 5,
00835 OGRSTSymbolStep = 6,
00836 OGRSTSymbolPerp = 7,
00837 OGRSTSymbolOffset = 8,
00838 OGRSTSymbolPriority = 9,
00839 OGRSTSymbolFontName = 10,
00840 OGRSTSymbolOColor = 11,
00841 OGRSTSymbolLast = 12
00842
00843 } OGRSTSymbolParam;
00844
00848 typedef enum ogr_style_tool_param_label_id
00849 {
00850 OGRSTLabelFontName = 0,
00851 OGRSTLabelSize = 1,
00852 OGRSTLabelTextString = 2,
00853 OGRSTLabelAngle = 3,
00854 OGRSTLabelFColor = 4,
00855 OGRSTLabelBColor = 5,
00856 OGRSTLabelPlacement = 6,
00857 OGRSTLabelAnchor = 7,
00858 OGRSTLabelDx = 8,
00859 OGRSTLabelDy = 9,
00860 OGRSTLabelPerp = 10,
00861 OGRSTLabelBold = 11,
00862 OGRSTLabelItalic = 12,
00863 OGRSTLabelUnderline = 13,
00864 OGRSTLabelPriority = 14,
00865 OGRSTLabelStrikeout = 15,
00866 OGRSTLabelStretch = 16,
00867 OGRSTLabelAdjHor = 17,
00868 OGRSTLabelAdjVert = 18,
00869 OGRSTLabelHColor = 19,
00870 OGRSTLabelOColor = 20,
00871 OGRSTLabelLast = 21
00872
00873 } OGRSTLabelParam;
00874
00875
00876
00877
00878
00879
00880
00881 #ifndef GDAL_VERSION_INFO_DEFINED
00882 #define GDAL_VERSION_INFO_DEFINED
00883 const char CPL_DLL * CPL_STDCALL GDALVersionInfo( const char * );
00884 #endif
00885
00886 #ifndef GDAL_CHECK_VERSION
00887
00899 int CPL_DLL CPL_STDCALL GDALCheckVersion( int nVersionMajor, int nVersionMinor,
00900 const char* pszCallingComponentName);
00901
00903 #define GDAL_CHECK_VERSION(pszCallingComponentName) \
00904 GDALCheckVersion(GDAL_VERSION_MAJOR, GDAL_VERSION_MINOR, pszCallingComponentName)
00905
00906 #endif
00907
00908 CPL_C_END
00909
00910 #endif