CONVERTCOORDINATESPROJECTIONCONVERT Performs a projection conversion This routine performs the conversion of the projection, thus from projected to geographic or vice versa. Syntax: [y1,x1] = ... ConvertCoordinatesProjectionConvert(x1,y1,CS,proj_conv,direction,STD) Input (watch the order: lon-lat / x-y (NOT lat-lon !): x1 = input coordinate (x or lon) y1 = input coordinate (y or lat) CS = coordinate system structure proj_conv = Structure with conversion parameters (code, name, method and param) direction = 'xy2geo' for projected to geographic, 'geo2xy' for geographic to projected STD = structure with all EPSG codes Output: y1 = output coordinate (y or lat) x1 = output coordinate (x or lon) See also CONVERTCOORDINATES -------------------------------------------------------------------- Copyright (C) 2009 Deltares for Building with Nature Thijs Damsma Thijs.Damsma@deltares.nl Deltares P.O. Box 177 2600 MH Delft The Netherlands This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this library. If not, see <http://www.gnu.org/licenses/>. --------------------------------------------------------------------