Statistics
| Revision:

root / trunk / libraries / libjni-addo / include / ogr_p.h @ 17341

History | View | Annotate | Download (3.95 KB)

1
/******************************************************************************
2
 * $Id: ogr_p.h,v 1.10 2006/03/31 17:44:20 fwarmerdam Exp $
3
 *
4
 * Project:  OpenGIS Simple Features Reference Implementation
5
 * Purpose:  Some private helper functions and stuff for OGR implementation.
6
 * Author:   Frank Warmerdam, warmerdam@pobox.com
7
 *
8
 ******************************************************************************
9
 * Copyright (c) 1999, Frank Warmerdam
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
 * $Log: ogr_p.h,v $
31
 * Revision 1.10  2006/03/31 17:44:20  fwarmerdam
32
 * header updates
33
 *
34
 * Revision 1.9  2005/10/16 01:59:06  cfis
35
 * Added declaration for OGRGeneralCmdLineProcessor to ogr_p.h, and included it into ogr2ogr.  Also changed call to CPL_DLL from CPL_STDCALL
36
 *
37
 * Revision 1.8  2005/07/20 01:43:51  fwarmerdam
38
 * upgraded OGR geometry dimension handling
39
 *
40
 * Revision 1.7  2001/11/01 17:01:28  warmerda
41
 * pass output buffer into OGRMakeWktCoordinate
42
 *
43
 * Revision 1.6  1999/11/18 19:02:20  warmerda
44
 * expanded tabs
45
 *
46
 * Revision 1.5  1999/09/13 02:27:33  warmerda
47
 * incorporated limited 2.5d support
48
 *
49
 * Revision 1.4  1999/07/29 17:30:38  warmerda
50
 * avoid geometry dependent stuff if ogr_geometry.h not included
51
 *
52
 * Revision 1.3  1999/07/07 04:23:07  danmo
53
 * Fixed typo in  #define _OGR_..._H_INCLUDED  line
54
 *
55
 * Revision 1.2  1999/05/20 14:36:04  warmerda
56
 * added well known text parsing prototypes
57
 *
58
 * Revision 1.1  1999/03/29 21:21:10  warmerda
59
 * New
60
 *
61
 */
62

    
63
#ifndef _OGR_P_H_INCLUDED
64
#define _OGR_P_H_INCLUDED
65

    
66
/* -------------------------------------------------------------------- */
67
/*      Include the common portability library ... lets us do lots      */
68
/*      of stuff easily.                                                */
69
/* -------------------------------------------------------------------- */
70

    
71
#include "cpl_string.h"
72
#include "cpl_conv.h"
73

    
74
#ifdef CPL_MSB 
75
#  define OGR_SWAP(x)   (x == wkbNDR)
76
#else
77
#  define OGR_SWAP(x)   (x == wkbXDR)
78
#endif
79

    
80
/* -------------------------------------------------------------------- */
81
/*      helper function for parsing well known text format vector objects.*/
82
/* -------------------------------------------------------------------- */
83

    
84
#ifdef _OGR_GEOMETRY_H_INCLUDED
85
#define OGR_WKT_TOKEN_MAX       64
86

    
87
const char CPL_DLL * OGRWktReadToken( const char * pszInput, char * pszToken );
88

    
89
const char CPL_DLL * OGRWktReadPoints( const char * pszInput,
90
                                       OGRRawPoint **ppaoPoints, 
91
                                       double **ppadfZ,
92
                                       int * pnMaxPoints,
93
                                       int * pnReadPoints );
94

    
95
void CPL_DLL OGRMakeWktCoordinate( char *, double, double, double, int );
96
#endif
97

    
98

    
99
/* General utility option processing. */
100
int CPL_DLL OGRGeneralCmdLineProcessor( int nArgc, char ***ppapszArgv, int nOptions );
101

    
102

    
103
#endif /* ndef _OGR_P_H_INCLUDED */