31 #ifndef OGR_P_H_INCLUDED 32 #define OGR_P_H_INCLUDED 47 #define OGR_GEOMETRY_DEFAULT_NON_EMPTY_NAME "_ogr_geometry_" 50 # define OGR_SWAP(x) (x == wkbNDR) 52 # define OGR_SWAP(x) (x == wkbXDR) 56 #define POSTGIS15_CURVEPOLYGON 13 57 #define POSTGIS15_MULTICURVE 14 58 #define POSTGIS15_MULTISURFACE 15 61 #ifdef GDAL_COMPILATION 62 #define wkb25DBitInternalUse 0x80000000 69 #ifdef _OGR_GEOMETRY_H_INCLUDED 70 #define OGR_WKT_TOKEN_MAX 64 72 const char CPL_DLL * OGRWktReadToken(
const char * pszInput,
char * pszToken );
74 const char CPL_DLL * OGRWktReadPoints(
const char * pszInput,
80 void CPL_DLL OGRMakeWktCoordinate(
char *,
double,
double,
double,
int );
84 void OGRFormatDouble(
char *pszBuffer,
int nBufferLen,
double dfVal,
char chDecimalSep,
int nPrecision = 15 );
92 int CPL_DLL OGRGetDayOfWeek(
int day,
int month,
int year);
93 int CPL_DLL OGRParseXMLDateTime(
const char* pszXMLDateTime,
95 int CPL_DLL OGRParseRFC822DateTime(
const char* pszRFC822DateTime,
97 char CPL_DLL * OGRGetRFC822DateTime(
const OGRField* psField);
98 char CPL_DLL * OGRGetXMLDateTime(
const OGRField* psField);
99 char CPL_DLL * OGRGetXML_UTF8_EscapedString(
const char* pszString);
101 int OGRCompareDate(
OGRField *psFirstTuple,
105 int CPL_DLL OGRGeneralCmdLineProcessor(
int nArgc,
char ***ppapszArgv,
int nOptions );
111 #define SPF_OGR_GEOMETRY 1 112 #define SPF_OGR_STYLE 2 113 #define SPF_OGR_GEOM_WKT 3 114 #define SPF_OGR_GEOM_AREA 4 115 #define SPECIAL_FIELD_COUNT 5 117 extern const char* SpecialFieldNames[SPECIAL_FIELD_COUNT];
119 #ifdef _SWQ_H_INCLUDED_ 120 extern const swq_field_type SpecialFieldTypes[SPECIAL_FIELD_COUNT];
127 OGRErr CPL_DLL OSRGetEllipsoidInfo(
int,
char **,
double *,
double *);
130 double OGRFastAtof(
const char* pszStr);
132 OGRErr CPL_DLL OGRCheckPermutation(
int* panPermutation,
int nSize);
137 int bGetSecondaryGeometryOption,
139 int nSRSDimension = 0,
140 int bIgnoreGSG = FALSE,
141 int bOrientation = TRUE,
142 int bFaceHoleNegative = FALSE);
148 OGRGeometry CPL_DLL *OGRGeometryFromEWKB( GByte *pabyWKB,
int nLength,
int* pnSRID,
149 int bIsPostGIS1_EWKB );
150 OGRGeometry CPL_DLL *OGRGeometryFromHexEWKB(
const char *pszBytea,
int* pnSRID,
151 int bIsPostGIS1_EWKB );
152 char CPL_DLL * OGRGeometryToHexEWKB(
OGRGeometry * poGeometry,
int nSRSId,
153 int bIsPostGIS1_EWKB );
159 OGRErr OGRReadWKBGeometryType(
unsigned char * pabyData,
Definition: cpl_minixml.h:65
Definition: ogr_geometry.h:47
OGRwkbGeometryType
Definition: ogr_core.h:309
Definition: ogr_geometry.h:104
OGRwkbVariant
Definition: ogr_core.h:371
Definition: ogr_core.h:574