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_PGEOGEOMETRY_H_INCLUDED
00032 #define _OGR_PGEOGEOMETRY_H_INCLUDED
00033
00034 #include "ogr_geometry.h"
00035
00036 #define SHPT_NULL 0
00037
00038 #define SHPT_POINT 1
00039 #define SHPT_POINTM 21
00040 #define SHPT_POINTZM 11
00041 #define SHPT_POINTZ 9
00042
00043 #define SHPT_MULTIPOINT 8
00044 #define SHPT_MULTIPOINTM 28
00045 #define SHPT_MULTIPOINTZM 18
00046 #define SHPT_MULTIPOINTZ 20
00047
00048 #define SHPT_ARC 3
00049 #define SHPT_ARCM 23
00050 #define SHPT_ARCZM 13
00051 #define SHPT_ARCZ 10
00052
00053 #define SHPT_POLYGON 5
00054 #define SHPT_POLYGONM 25
00055 #define SHPT_POLYGONZM 15
00056 #define SHPT_POLYGONZ 19
00057
00058 #define SHPT_MULTIPATCHM 31
00059 #define SHPT_MULTIPATCH 32
00060
00061 #define SHPT_GENERALPOLYLINE 50
00062 #define SHPT_GENERALPOLYGON 51
00063 #define SHPT_GENERALPOINT 52
00064 #define SHPT_GENERALMULTIPOINT 53
00065 #define SHPT_GENERALMULTIPATCH 54
00066
00067
00068
00069 #define ESRI_LAYERGEOMTYPE_NULL 0
00070 #define ESRI_LAYERGEOMTYPE_POINT 1
00071 #define ESRI_LAYERGEOMTYPE_MULTIPOINT 2
00072 #define ESRI_LAYERGEOMTYPE_POLYLINE 3
00073 #define ESRI_LAYERGEOMTYPE_POLYGON 4
00074 #define ESRI_LAYERGEOMTYPE_MULTIPATCH 9
00075
00076 void OGRCreateFromMultiPatchPart(OGRMultiPolygon *poMP,
00077 OGRPolygon*& poLastPoly,
00078 int nPartType,
00079 int nPartPoints,
00080 double* padfX,
00081 double* padfY,
00082 double* padfZ);
00083
00084 OGRErr CPL_DLL OGRCreateFromShapeBin( GByte *pabyShape,
00085 OGRGeometry **ppoGeom,
00086 int nBytes );
00087
00088 OGRErr CPL_DLL OGRWriteToShapeBin( OGRGeometry *poGeom,
00089 GByte **ppabyShape,
00090 int *pnBytes );
00091
00092 OGRErr CPL_DLL OGRWriteMultiPatchToShapeBin( OGRGeometry *poGeom,
00093 GByte **ppabyShape,
00094 int *pnBytes );
00095
00096 #endif