OGR
Main Page
Related Pages
Classes
Files
File List
File Members
ogrpgeogeometry.h
1
/******************************************************************************
2
* $Id: ogrpgeogeometry.h 22525 2011-06-11 02:18:49Z rburhum $
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
*
11
* Permission is hereby granted, free of charge, to any person obtaining a
12
* copy of this software and associated documentation files (the "Software"),
13
* to deal in the Software without restriction, including without limitation
14
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
15
* and/or sell copies of the Software, and to permit persons to whom the
16
* Software is furnished to do so, subject to the following conditions:
17
*
18
* The above copyright notice and this permission notice shall be included
19
* in all copies or substantial portions of the Software.
20
*
21
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27
* DEALINGS IN THE SOFTWARE.
28
****************************************************************************/
29
30
#ifndef _OGR_PGEOGEOMETRY_H_INCLUDED
31
#define _OGR_PGEOGEOMETRY_H_INCLUDED
32
33
#include "
ogr_geometry.h
"
34
35
#define SHPT_NULL 0
36
37
#define SHPT_POINT 1
38
#define SHPT_POINTM 21
39
#define SHPT_POINTZM 11
40
#define SHPT_POINTZ 9
41
42
#define SHPT_MULTIPOINT 8
43
#define SHPT_MULTIPOINTM 28
44
#define SHPT_MULTIPOINTZM 18
45
#define SHPT_MULTIPOINTZ 20
46
47
#define SHPT_ARC 3
48
#define SHPT_ARCM 23
49
#define SHPT_ARCZM 13
50
#define SHPT_ARCZ 10
51
52
#define SHPT_POLYGON 5
53
#define SHPT_POLYGONM 25
54
#define SHPT_POLYGONZM 15
55
#define SHPT_POLYGONZ 19
56
57
#define SHPT_MULTIPATCHM 31
58
#define SHPT_MULTIPATCH 32
59
60
#define SHPT_GENERALPOLYLINE 50
61
#define SHPT_GENERALPOLYGON 51
62
#define SHPT_GENERALPOINT 52
63
#define SHPT_GENERALMULTIPOINT 53
64
#define SHPT_GENERALMULTIPATCH 54
65
66
/* The following are layers geometry type */
67
/* They are different from the above shape types */
68
#define ESRI_LAYERGEOMTYPE_NULL 0
69
#define ESRI_LAYERGEOMTYPE_POINT 1
70
#define ESRI_LAYERGEOMTYPE_MULTIPOINT 2
71
#define ESRI_LAYERGEOMTYPE_POLYLINE 3
72
#define ESRI_LAYERGEOMTYPE_POLYGON 4
73
#define ESRI_LAYERGEOMTYPE_MULTIPATCH 9
74
75
76
OGRErr CPL_DLL OGRCreateFromShapeBin( GByte *pabyShape,
77
OGRGeometry
**ppoGeom,
78
int
nBytes );
79
80
OGRErr CPL_DLL OGRWriteToShapeBin(
OGRGeometry
*poGeom,
81
GByte **ppabyShape,
82
int
*pnBytes );
83
84
85
#endif
Generated for GDAL by
1.8.1.2.