📄 datumauthorityfactory.java
字号:
/*$************************************************************************************************ ** ** $Id: DatumAuthorityFactory.java,v 1.1 2004/05/06 15:51:50 desruisseaux Exp $ ** ** $Source: /cvsroot/geoapi/src/org/opengis/referencing/datum/DatumAuthorityFactory.java,v $ ** ** Copyright (C) 2003 Open GIS Consortium, Inc. All Rights Reserved. http://www.opengis.org/Legal/ ** *************************************************************************************************/package org.opengis.referencing.datum;// J2SE extensionsimport javax.units.Unit;// OpenGIS direct dependenciesimport org.opengis.referencing.AuthorityFactory;import org.opengis.referencing.FactoryException;import org.opengis.referencing.NoSuchAuthorityCodeException;/** * Creates {@linkplain Datum datum} objects using authority codes. External authorities are used to * manage definitions of objects used in this interface. The definitions of these objects are * referenced using code strings. A commonly used authority is <A HREF="http://www.epsg.org">EPSG</A>, * which is also used in the <A HREF="http://www.remotesensing.org/geotiff/geotiff.html">GeoTIFF</A> * standard. * * @UML abstract CS_CoordinateSystemAuthorityFactory * @author <A HREF="http://www.opengis.org">OpenGIS® consortium</A> * @version <A HREF="http://www.opengis.org/docs/01-009.pdf">Implementation specification 1.0</A> * * @see org.opengis.referencing.cs.CSAuthorityFactory * @see org.opengis.referencing.crs.CRSAuthorityFactory */public interface DatumAuthorityFactory extends AuthorityFactory { /** * Returns an arbitrary {@linkplain Datum datum} from a code. If the datum type is know at * compile time, it is recommended to invoke the most precise method instead of this one * (for example <code> {@linkplain #createGeodeticDatum createGeodeticDatum}(code) </code> * instead of <code> createDatum(code) </code> if the caller know he is asking for a * {@linkplain GeodeticDatum geodetic datum}). * * @param code Value allocated by authority. * @throws NoSuchAuthorityCodeException if the specified <code>code</code> was not found. * @throws FactoryException if the object creation failed for some other reason. * * @see #createGeodeticDatum * @see #createVerticalDatum * @see #createTemporalDatum */ Datum createDatum(String code) throws FactoryException; /** * Creates a {@linkplain EngineeringDatum engineering datum} from a code. * * @param code Value allocated by authority. * @throws NoSuchAuthorityCodeException if the specified <code>code</code> was not found. * @throws FactoryException if the object creation failed for some other reason. * * @see org.opengis.referencing.crs.CRSAuthorityFactory#createEngineeringCRS */ EngineeringDatum createEngineeringDatum(String code) throws FactoryException; /** * Creates a {@linkplain ImageDatum image datum} from a code. * * @param code Value allocated by authority. * @throws NoSuchAuthorityCodeException if the specified <code>code</code> was not found. * @throws FactoryException if the object creation failed for some other reason. * * @see org.opengis.referencing.crs.CRSAuthorityFactory#createImageCRS */ ImageDatum createImageDatum(String code) throws FactoryException; /** * Creates a {@linkplain VerticalDatum vertical datum} from a code. * * @param code Value allocated by authority. * @throws NoSuchAuthorityCodeException if the specified <code>code</code> was not found. * @throws FactoryException if the object creation failed for some other reason. * * @UML operation createVerticalDatum in 1.0 specification * @see org.opengis.referencing.crs.CRSAuthorityFactory#createVerticalCRS */ VerticalDatum createVerticalDatum(String code) throws FactoryException; /** * Creates a {@linkplain TemporalDatum temporal datum} from a code. * * @param code Value allocated by authority. * @throws NoSuchAuthorityCodeException if the specified <code>code</code> was not found. * @throws FactoryException if the object creation failed for some other reason. * * @see org.opengis.referencing.crs.CRSAuthorityFactory#createTemporalCRS */ TemporalDatum createTemporalDatum(String code) throws FactoryException; /** * Returns a {@linkplain GeodeticDatum geodetic datum} from a code. * * @param code Value allocated by authority. * @throws NoSuchAuthorityCodeException if the specified <code>code</code> was not found. * @throws FactoryException if the object creation failed for some other reason. * * @UML operation createHorizontalDatum in 1.0 specification * @see #createEllipsoid * @see #createPrimeMeridian * @see org.opengis.referencing.crs.CRSAuthorityFactory#createGeographicCRS * @see org.opengis.referencing.crs.CRSAuthorityFactory#createProjectedCRS */ GeodeticDatum createGeodeticDatum(String code) throws FactoryException; /** * Returns an {@linkplain Ellipsoid ellipsoid} from a code. * * @param code Value allocated by authority. * @throws NoSuchAuthorityCodeException if the specified <code>code</code> was not found. * @throws FactoryException if the object creation failed for some other reason. * * @UML operation createEllipsoid in 1.0 specification * @see #createGeodeticDatum */ Ellipsoid createEllipsoid(String code) throws FactoryException; /** * Returns a {@linkplain PrimeMeridian prime meridian} from a code. * * @param code Value allocated by authority. * @throws NoSuchAuthorityCodeException if the specified <code>code</code> was not found. * @throws FactoryException if the object creation failed for some other reason. * * @UML operation createPrimeMeridian in 1.0 specification * @see #createGeodeticDatum */ PrimeMeridian createPrimeMeridian(String code) throws FactoryException; /** * Gets the Geoid code from a WKT name. * In the OGC definition of WKT horizontal datums, the geoid is * referenced by a quoted string, which is used as a key value. This * method converts the key value string into a code recognized by this * authority. * * @param wkt Name of geoid defined by OGC (e.g. "European_Datum_1950"). * * @UML operation geoidFromWKTName in 1.0 specification * @see #createGeodeticDatum * * @revisit WKT are not yet specified in this 2.0 version of interfaces. * Does the OGC names still the same? */ String geoidFromWktName(String wkt); /** * Gets the WKT name of a Geoid. * In the OGC definition of WKT horizontal datums, the geoid is * referenced by a quoted string, which is used as a key value. * This method gets the OGC WKT key value from a geoid code. * * @param geoid Code value for geoid allocated by authority. * * @UML operation wktGeoidName in 1.0 specification * @see #createGeodeticDatum * * @revisit WKT are not yet specified in this 2.0 version of interfaces. * Does the OGC names still the same? */ String wktFromGeoidName(String geoid);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -