GDAL

- Main Page
- Related Pages
- Classes
- Files
- Download
- Issue Tracker

- File List
- File Members

ogrpgeogeometry.h
1 /******************************************************************************
2 * $Id: ogrpgeogeometry.h 36883 2016-12-15 13:31:12Z rouault $
3 *
4 * Project: OpenGIS Simple Features Reference Implementation
5 * Purpose: Implements decoder of shapebin geometry for PGeo
6 * Author: Frank Warmerdam, warmerdam@pobox.com
7 *
8 ******************************************************************************
9 * Copyright (c) 2005, Frank Warmerdam <warmerdam@pobox.com>
10 * Copyright (c) 2011-2014, Even Rouault <even dot rouault at mines-paris dot org>
11 *
12 * Permission is hereby granted, free of charge, to any person obtaining a
13 * copy of this software and associated documentation files (the "Software"),
14 * to deal in the Software without restriction, including without limitation
15 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
16 * and/or sell copies of the Software, and to permit persons to whom the
17 * Software is furnished to do so, subject to the following conditions:
18 *
19 * The above copyright notice and this permission notice shall be included
20 * in all copies or substantial portions of the Software.
21 *
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
25 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
28 * DEALINGS IN THE SOFTWARE.
29 ****************************************************************************/
30
31 #ifndef OGR_PGEOGEOMETRY_H_INCLUDED
32 #define OGR_PGEOGEOMETRY_H_INCLUDED
33
34 #include "ogr_geometry.h"
35
36 #define SHPT_NULL 0
37
38 #ifndef SHPT_POINT
39 #define SHPT_POINT 1
40 #define SHPT_POINTM 21
41 #define SHPT_POINTZM 11
42 #define SHPT_POINTZ 9
43
44 #define SHPT_MULTIPOINT 8
45 #define SHPT_MULTIPOINTM 28
46 #define SHPT_MULTIPOINTZM 18
47 #define SHPT_MULTIPOINTZ 20
48
49 #define SHPT_ARC 3
50 #define SHPT_ARCM 23
51 #define SHPT_ARCZM 13
52 #define SHPT_ARCZ 10
53
54 #define SHPT_POLYGON 5
55 #define SHPT_POLYGONM 25
56 #define SHPT_POLYGONZM 15
57 #define SHPT_POLYGONZ 19
58
59 #define SHPT_MULTIPATCHM 31
60 #define SHPT_MULTIPATCH 32
61 #endif // SHPT_POINT
62
63 #define SHPT_GENERALPOLYLINE 50
64 #define SHPT_GENERALPOLYGON 51
65 #define SHPT_GENERALPOINT 52
66 #define SHPT_GENERALMULTIPOINT 53
67 #define SHPT_GENERALMULTIPATCH 54
68
69 /* The following are layers geometry type */
70 /* They are different from the above shape types */
71 #define ESRI_LAYERGEOMTYPE_NULL 0
72 #define ESRI_LAYERGEOMTYPE_POINT 1
73 #define ESRI_LAYERGEOMTYPE_MULTIPOINT 2
74 #define ESRI_LAYERGEOMTYPE_POLYLINE 3
75 #define ESRI_LAYERGEOMTYPE_POLYGON 4
76 #define ESRI_LAYERGEOMTYPE_MULTIPATCH 9
77
78 OGRGeometry* OGRCreateFromMultiPatch( int nParts,
79 const GInt32* panPartStart,
80 const GInt32* panPartType,
81 int nPoints,
82 const double* padfX,
83 const double* padfY,
84 const double* padfZ );
85
86 OGRErr CPL_DLL OGRCreateFromShapeBin( GByte *pabyShape,
87 OGRGeometry **ppoGeom,
88 int nBytes );
89
90 OGRErr CPL_DLL OGRWriteToShapeBin( OGRGeometry *poGeom,
91 GByte **ppabyShape,
92 int *pnBytes );
93
94 OGRErr OGRCreateMultiPatch( OGRGeometry *poGeom,
95 int bAllowSHPTTriangle,
96 int& nParts,
97 int*& panPartStart,
98 int*& panPartType,
99 int& nPoints,
100 OGRRawPoint*& poPoints,
101 double*& padfZ );
102
103 OGRErr CPL_DLL OGRWriteMultiPatchToShapeBin( OGRGeometry *poGeom,
104 GByte **ppabyShape,
105 int *pnBytes );
106
107 #endif
GInt32
int GInt32
Int32 type.
Definition: cpl_port.h:197
GByte
unsigned char GByte
Unsigned byte type.
Definition: cpl_port.h:207
OGRRawPoint
Simple container for a position.
Definition: ogr_geometry.h:47
OGRGeometry
Abstract base class for all geometry classes.
Definition: ogr_geometry.h:118
ogr_geometry.h
Simple feature geometry classes.
OGRErr
int OGRErr
Simple container for a bounding region.
Definition: ogr_core.h:285

Generated for GDAL by 1.8.9.1.