31 #ifndef OGR_P_H_INCLUDED
32 #define OGR_P_H_INCLUDED
48 #define OGR_GEOMETRY_DEFAULT_NON_EMPTY_NAME "_ogr_geometry_"
51 # define OGR_SWAP(x) (x == wkbNDR)
53 # define OGR_SWAP(x) (x == wkbXDR)
57 #define POSTGIS15_CURVEPOLYGON 13
58 #define POSTGIS15_MULTICURVE 14
59 #define POSTGIS15_MULTISURFACE 15
62 #ifdef GDAL_COMPILATION
63 #define wkb25DBitInternalUse 0x80000000
70 #ifdef OGR_GEOMETRY_H_INCLUDED
71 #define OGR_WKT_TOKEN_MAX 64
73 const char CPL_DLL * OGRWktReadToken(
const char * pszInput,
char * pszToken );
75 const char CPL_DLL * OGRWktReadPoints(
const char * pszInput,
81 const char CPL_DLL * OGRWktReadPointsM(
const char * pszInput,
89 void CPL_DLL OGRMakeWktCoordinate(
char *,
double,
double,
double,
int );
90 void CPL_DLL OGRMakeWktCoordinateM(
char *,
double,
double,
double,
double,
OGRBoolean,
OGRBoolean );
94 void OGRFormatDouble(
char *pszBuffer,
int nBufferLen,
double dfVal,
95 char chDecimalSep,
int nPrecision = 15,
char chConversionSpecifier =
'f' );
103 int CPL_DLL OGRGetDayOfWeek(
int day,
int month,
int year);
104 int CPL_DLL OGRParseXMLDateTime(
const char* pszXMLDateTime,
106 int CPL_DLL OGRParseRFC822DateTime(
const char* pszRFC822DateTime,
108 char CPL_DLL * OGRGetRFC822DateTime(
const OGRField* psField);
109 char CPL_DLL * OGRGetXMLDateTime(
const OGRField* psField);
110 char CPL_DLL * OGRGetXML_UTF8_EscapedString(
const char* pszString);
112 int OGRCompareDate(
const OGRField *psFirstTuple,
116 int CPL_DLL OGRGeneralCmdLineProcessor(
int nArgc,
char ***ppapszArgv,
int nOptions );
122 #define SPF_OGR_GEOMETRY 1
123 #define SPF_OGR_STYLE 2
124 #define SPF_OGR_GEOM_WKT 3
125 #define SPF_OGR_GEOM_AREA 4
126 #define SPECIAL_FIELD_COUNT 5
128 extern const char*
const SpecialFieldNames[SPECIAL_FIELD_COUNT];
130 #ifdef SWQ_H_INCLUDED_
131 extern const swq_field_type SpecialFieldTypes[SPECIAL_FIELD_COUNT];
138 OGRErr CPL_DLL OSRGetEllipsoidInfo(
int,
char **,
double *,
double *);
141 double OGRFastAtof(
const char* pszStr);
143 OGRErr CPL_DLL OGRCheckPermutation(
int* panPermutation,
int nSize);
148 int nPseudoBoolGetSecondaryGeometryOption,
150 int nSRSDimension = 0,
151 bool bIgnoreGSG =
false,
152 bool bOrientation =
true,
153 bool bFaceHoleNegative =
false);
159 OGRGeometry CPL_DLL *OGRGeometryFromEWKB(
GByte *pabyWKB,
int nLength,
int* pnSRID,
160 int bIsPostGIS1_EWKB );
161 OGRGeometry CPL_DLL *OGRGeometryFromHexEWKB(
const char *pszBytea,
int* pnSRID,
162 int bIsPostGIS1_EWKB );
163 char CPL_DLL * OGRGeometryToHexEWKB(
OGRGeometry * poGeometry,
int nSRSId,
164 int nPostGISMajor,
int nPostGISMinor );
170 OGRErr OGRReadWKBGeometryType(
unsigned char * pabyData,
OGRFieldSubType
Definition: ogr_core.h:612
Definition: cpl_minixml.h:66
int OGRBoolean
Definition: ogr_core.h:301
unsigned char GByte
Definition: cpl_port.h:207
Definition: ogr_feature.h:62
Definition: ogr_geometry.h:47
OGRwkbGeometryType
Definition: ogr_core.h:312
Definition: ogr_geometry.h:118
OGRFieldType
Definition: ogr_core.h:584
OGRwkbVariant
Definition: ogr_core.h:418
Definition: ogr_core.h:661
int OGRErr
Definition: ogr_core.h:285