| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/utils/TeWKBGeometryDecoder.h
Go to the documentation of this file.

    00001 /************************************************************************************
    00002 TerraLib - a library for developing GIS applications.
    00003 Copyright  2001-2007 INPE and Tecgraf/PUC-Rio.
    00004
    00005 This code is part of the TerraLib library.
    00006 This library is free software; you can redistribute it and/or
    00007 modify it under the terms of the GNU Lesser General Public
    00008 License as published by the Free Software Foundation; either
    00009 version 2.1 of the License, or (at your option) any later version.
    00010
    00011 You should have received a copy of the GNU Lesser General Public
    00012 License along with this library.
    00013
    00014 The authors reassure the license terms regarding the warranties.
    00015 They specifically disclaim any warranties, including, but not limited to,
    00016 the implied warranties of merchantability and fitness for a particular purpose.
    00017 The library provided hereunder is on an "as is" basis, and the authors have no
    00018 obligation to provide maintenance, support, updates, enhancements, or modifications.
    00019 In no event shall INPE and Tecgraf / PUC-Rio be held liable to any party for direct,
    00020 indirect, special, incidental, or consequential damages arising out of the use
    00021 of this library and its documentation.
    00022 *************************************************************************************/
    00023
    00024 #ifndef  __TERRALIB_INTERNAL_WKBGEOMETRYDECODER_H
    00025 #define  __TERRALIB_INTERNAL_WKBGEOMETRYDECODER_H
    00026
    00027 #include "TeUtilsDefines.h"
    00028
    00029 //Forward declarations
    00030 class TePolygon;
    00031 class TeLine2D;
    00032 class TeCoord2D;
    00033 class TePolygonSet;
    00034 class TeLineSet;
    00035 class TePointSet;
    00036
    00045 namespace TeWKBGeometryDecoder
    00046 {
    00051
    00057            TLUTILS_DLL void encodePolygon(const TePolygon& polygon, char*& wkbPoly, unsigned int& size);
    00058
    00064            TLUTILS_DLL void encodeLine(const TeLine2D& line, char*& wkbLine, unsigned int& size);
    00065
    00071            TLUTILS_DLL void encodePoint(const TeCoord2D& point, char*& wkbPoint, unsigned int& size);
    00073
    00078
    00084            TLUTILS_DLL void decodePolygon(const char*& wkbPoly, TePolygon& poly, unsigned int& readBytes);
    00085
    00091            TLUTILS_DLL void decodeLine(const char*& wkbLine, TeLine2D& line, unsigned int& readBytes);
    00092
    00098            TLUTILS_DLL void decodePoint(const char*& wkbPoint, TeCoord2D& point, unsigned int& readBytes);
    00099
    00105            TLUTILS_DLL void decodePolygonSet(const char*& wkbMultiPolygon, TePolygonSet& pset, unsigned int& readBytes);
    00106
    00112            TLUTILS_DLL void decodeLineSet(const char*& wkbMultiLine, TeLineSet& lset, unsigned int& readBytes);
    00113
    00119            TLUTILS_DLL void decodePointSet(const char*& wkbMultiPoint, TePointSet& ptset, unsigned int& readBytes);
    00120
    00122 };
    00123
    00124 #endif  //__TERRALIB_INTERNAL_WKBGEOMETRYENCODER_H

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines