| 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/kernel/TeVectorRemap.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 *************************************************************************************/
    00026 #ifndef  __TERRALIB_INTERNAL_VECTORREMAP_H
    00027 #define  __TERRALIB_INTERNAL_VECTORREMAP_H
    00028
    00029 #include "TeProjection.h"
    00030 #include "TeGeometry.h"
    00031
    00033 /*
    00034            \param g1 the input geometry
    00035            \param p1 the initial projection
    00036            \param g2 to receive the remapped geometry
    00037            \param p1 the destination projection
    00038 */
    00039 template<typename G>
    00040 void TeVectorRemap (G& g1, TeProjection* p1, G& g2, TeProjection* p2)
    00041 {
    00042            int nItens = g1.size();
    00043            for (int i=0; i<nItens; i++)
    00044            {
    00045                       typename G::value_type e1 = g1[i];
    00046                       typename G::value_type e2;
    00047                       TeVectorRemap(e1,p1,e2,p2);
    00048                       g2.add(e2);
    00049            }
    00050 }
    00051
    00053 TL_DLL void TeVectorRemap(TeCoord2D& pt1, TeProjection* p1, TeCoord2D& pt2, TeProjection* p2);
    00054
    00056 TL_DLL void TeVectorRemap(TeCell& c1, TeProjection* p1, TeCell& c2, TeProjection* p2);
    00057
    00059 TL_DLL void TeVectorRemap(TeText& t1, TeProjection* p1, TeText& t2, TeProjection* p2);
    00060
    00062 /*
    00063            \param box the input box
    00064            \param projFrom the initial projection
    00065            \param projTo the destination projection
    00066            \returns the remmaped box
    00067 */
    00068 TL_DLL TeBox TeRemapBox (const TeBox& box, TeProjection* projFrom, TeProjection* projTo);
    00069
    00071 /*
    00072            \param box the input box
    00073            \param proj the data projection
    00074            \returns the remmaped box
    00075 */
    00076 TL_DLL TeBox TeRemapBoxPC2Geodetic (const TeBox& box, TeProjection* proj);
    00077
    00079 /*
    00080            \param box the input box
    00081            \param proj the data projection
    00082            \returns the remmaped box
    00083 */
    00084 TL_DLL TeBox TeRemapBoxGeodetic2PC (const TeBox& box, TeProjection* proj);
    00085
    00086 #endif

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines