GDAL

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

ogrpgeogeometry.h
1 /******************************************************************************
2 * $Id: ogrpgeogeometry.h 33631 2016-03-04 06:28:09Z goatbar $
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 #define SHPT_POINT 1
39 #define SHPT_POINTM 21
40 #define SHPT_POINTZM 11
41 #define SHPT_POINTZ 9
42
43 #define SHPT_MULTIPOINT 8
44 #define SHPT_MULTIPOINTM 28
45 #define SHPT_MULTIPOINTZM 18
46 #define SHPT_MULTIPOINTZ 20
47
48 #define SHPT_ARC 3
49 #define SHPT_ARCM 23
50 #define SHPT_ARCZM 13
51 #define SHPT_ARCZ 10
52
53 #define SHPT_POLYGON 5
54 #define SHPT_POLYGONM 25
55 #define SHPT_POLYGONZM 15
56 #define SHPT_POLYGONZ 19
57
58 #define SHPT_MULTIPATCHM 31
59 #define SHPT_MULTIPATCH 32
60
61 #define SHPT_GENERALPOLYLINE 50
62 #define SHPT_GENERALPOLYGON 51
63 #define SHPT_GENERALPOINT 52
64 #define SHPT_GENERALMULTIPOINT 53
65 #define SHPT_GENERALMULTIPATCH 54
66
67 /* The following are layers geometry type */
68 /* They are different from the above shape types */
69 #define ESRI_LAYERGEOMTYPE_NULL 0
70 #define ESRI_LAYERGEOMTYPE_POINT 1
71 #define ESRI_LAYERGEOMTYPE_MULTIPOINT 2
72 #define ESRI_LAYERGEOMTYPE_POLYLINE 3
73 #define ESRI_LAYERGEOMTYPE_POLYGON 4
74 #define ESRI_LAYERGEOMTYPE_MULTIPATCH 9
75
76 void OGRCreateFromMultiPatchPart(OGRMultiPolygon *poMP,
77 OGRPolygon*& poLastPoly,
78 int nPartType,
79 int nPartPoints,
80 double* padfX,
81 double* padfY,
82 double* padfZ);
83
84 OGRErr CPL_DLL OGRCreateFromShapeBin( GByte *pabyShape,
85 OGRGeometry **ppoGeom,
86 int nBytes );
87
88 OGRErr CPL_DLL OGRWriteToShapeBin( OGRGeometry *poGeom,
89 GByte **ppabyShape,
90 int *pnBytes );
91
92 OGRErr CPL_DLL OGRWriteMultiPatchToShapeBin( OGRGeometry *poGeom,
93 GByte **ppabyShape,
94 int *pnBytes );
95
96 #endif
OGRMultiPolygon
A collection of non-overlapping OGRPolygon.
Definition: ogr_geometry.h:1184
OGRGeometry
Abstract base class for all geometry classes.
Definition: ogr_geometry.h:104
OGRPolygon
Concrete class representing polygons.
Definition: ogr_geometry.h:994
ogr_geometry.h
Simple feature geometry classes.

Generated for GDAL by 1.8.8.