#region Disclaimer / License
// Copyright (C) 2009, Kenneth Skovhede
// http://www.hexad.dk, opensource@hexad.dk
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//
#endregion
using System;
namespace OSGeo.MapGuide.MaestroAPI.CoordinateSystem
{
///
/// Defines a coordinate system catalog
///
public interface ICoordinateSystemCatalog
{
///
/// Gets an array of coordinate system categories
///
CoordinateSystemCategory[] Categories { get; }
///
/// Convers the specified coordinate system code to WKT
///
///
///
string ConvertCoordinateSystemCodeToWkt(string coordcode);
///
/// Converts the specified epsg code to WKT
///
///
///
string ConvertEpsgCodeToWkt(string epsg);
///
/// Converts the specified WKT into a coordinate system code
///
///
///
string ConvertWktToCoordinateSystemCode(string wkt);
///
/// Converts the specified WKT into an EPSG code
///
///
///
string ConvertWktToEpsgCode(string wkt);
///
/// Gets an array of all coordinate systems in this catalog
///
CoordinateSystemDefinitionBase[] Coordsys { get; }
///
/// Gets an array of all coordinate systems in the specified category
///
///
///
CoordinateSystemDefinitionBase[] EnumerateCoordinateSystems(string category);
///
/// Gets the coordinate system that matches the specified code
///
///
///
CoordinateSystemDefinitionBase FindCoordSys(string coordcode);
///
/// Gets an empty coordinate system
///
///
CoordinateSystemDefinitionBase CreateEmptyCoordinateSystem();
///
/// Checks if the specified WKT is valid
///
///
///
bool IsValid(string wkt);
///
/// Gets the name of the coordinate system library
///
string LibraryName { get; }
///
/// Gets whether the coordinate system catalog has been loaded
///
bool IsLoaded { get; }
///
/// Creates a simple coordinate system transformation from the source and target WKT strings
///
///
///
///
ISimpleTransform CreateTransform(string sourceWkt, string targetWkt);
}
}