ogr_p.h

00001 /******************************************************************************
00002  * $Id: ogr_p.h,v 1.7 2001/11/01 17:01:28 warmerda Exp $
00003  *
00004  * Project:  OpenGIS Simple Features Reference Implementation
00005  * Purpose:  Some private helper functions and stuff for OGR implementation.
00006  * Author:   Frank Warmerdam, warmerda@home.com
00007  *
00008  ******************************************************************************
00009  * Copyright (c) 1999, Frank Warmerdam
00010  *
00011  * Permission is hereby granted, free of charge, to any person obtaining a
00012  * copy of this software and associated documentation files (the "Software"),
00013  * to deal in the Software without restriction, including without limitation
00014  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
00015  * and/or sell copies of the Software, and to permit persons to whom the
00016  * Software is furnished to do so, subject to the following conditions:
00017  *
00018  * The above copyright notice and this permission notice shall be included
00019  * in all copies or substantial portions of the Software.
00020  *
00021  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00022  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00023  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
00024  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00025  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00026  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00027  * DEALINGS IN THE SOFTWARE.
00028  ******************************************************************************
00029  *
00030  * $Log: ogr_p.h,v $
00031  * Revision 1.7  2001/11/01 17:01:28  warmerda
00032  * pass output buffer into OGRMakeWktCoordinate
00033  *
00034  * Revision 1.6  1999/11/18 19:02:20  warmerda
00035  * expanded tabs
00036  *
00037  * Revision 1.5  1999/09/13 02:27:33  warmerda
00038  * incorporated limited 2.5d support
00039  *
00040  * Revision 1.4  1999/07/29 17:30:38  warmerda
00041  * avoid geometry dependent stuff if ogr_geometry.h not included
00042  *
00043  * Revision 1.3  1999/07/07 04:23:07  danmo
00044  * Fixed typo in  #define _OGR_..._H_INCLUDED  line
00045  *
00046  * Revision 1.2  1999/05/20 14:36:04  warmerda
00047  * added well known text parsing prototypes
00048  *
00049  * Revision 1.1  1999/03/29 21:21:10  warmerda
00050  * New
00051  *
00052  */
00053 
00054 #ifndef _OGR_P_H_INCLUDED
00055 #define _OGR_P_H_INCLUDED
00056 
00057 /* -------------------------------------------------------------------- */
00058 /*      Include the common portability library ... lets us do lots      */
00059 /*      of stuff easily.                                                */
00060 /* -------------------------------------------------------------------- */
00061 
00062 #include "cpl_string.h"
00063 #include "cpl_conv.h"
00064 
00065 #ifdef CPL_MSB 
00066 #  define OGR_SWAP(x)   (x == wkbNDR)
00067 #else
00068 #  define OGR_SWAP(x)   (x == wkbXDR)
00069 #endif
00070 
00071 /* -------------------------------------------------------------------- */
00072 /*      helper function for parsing well known text format vector objects.*/
00073 /* -------------------------------------------------------------------- */
00074 
00075 #ifdef _OGR_GEOMETRY_H_INCLUDED
00076 #define OGR_WKT_TOKEN_MAX       64
00077 
00078 const char CPL_DLL * OGRWktReadToken( const char * pszInput, char * pszToken );
00079 
00080 const char CPL_DLL * OGRWktReadPoints( const char * pszInput,
00081                                OGRRawPoint **ppaoPoints, double **ppadfZ,
00082                                int * pnMaxPoints,
00083                                int * pnReadPoints );
00084 
00085 void CPL_DLL OGRMakeWktCoordinate( char *, double, double, double );
00086 #endif
00087 
00088 #endif /* ndef _OGR_P_H_INCLUDED */

Generated on Mon Jan 9 18:03:31 2006 for OGR by  doxygen 1.4.6