001: /*
002: * GeoTools - OpenSource mapping toolkit
003: * http://geotools.org
004: * (C) 2004-2006, GeoTools Project Managment Committee (PMC)
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation;
009: * version 2.1 of the License.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: */
016: package org.geotools.data.jdbc.referencing;
017:
018: import java.io.IOException;
019: import java.sql.Connection;
020: import java.sql.SQLException;
021: import java.util.Set;
022:
023: import javax.sql.DataSource;
024:
025: import org.geotools.data.DataSourceException;
026: import org.geotools.data.Transaction;
027: import org.geotools.data.jdbc.ConnectionPool;
028: import org.geotools.data.jdbc.JDBCTransactionState;
029: import org.geotools.referencing.ReferencingFactoryFinder;
030: import org.opengis.metadata.citation.Citation;
031: import org.opengis.referencing.FactoryException;
032: import org.opengis.referencing.IdentifiedObject;
033: import org.opengis.referencing.ObjectFactory;
034: import org.opengis.referencing.crs.CRSAuthorityFactory;
035: import org.opengis.referencing.crs.CRSFactory;
036: import org.opengis.referencing.crs.CompoundCRS;
037: import org.opengis.referencing.crs.CoordinateReferenceSystem;
038: import org.opengis.referencing.crs.DerivedCRS;
039: import org.opengis.referencing.crs.EngineeringCRS;
040: import org.opengis.referencing.crs.GeocentricCRS;
041: import org.opengis.referencing.crs.GeographicCRS;
042: import org.opengis.referencing.crs.ImageCRS;
043: import org.opengis.referencing.crs.ProjectedCRS;
044: import org.opengis.referencing.crs.TemporalCRS;
045: import org.opengis.referencing.crs.VerticalCRS;
046: import org.opengis.util.InternationalString;
047:
048: /**
049: * @author jeichar
050: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/jdbc/src/main/java/org/geotools/data/jdbc/referencing/JDBCAuthorityFactory.java $
051: */
052: public class JDBCAuthorityFactory implements CRSAuthorityFactory {
053:
054: protected CRSFactory factory;
055: protected DataSource dataSource;
056:
057: /**
058: * Construct <code>PostgisAuthorityFactory</code>.
059: *
060: */
061: public JDBCAuthorityFactory(DataSource pool) {
062: factory = ReferencingFactoryFinder.getCRSFactory(null);
063: this .dataSource = pool;
064: }
065:
066: /**
067: * @see org.opengis.referencing.crs.CRSAuthorityFactory#createCoordinateReferenceSystem(java.lang.String)
068: */
069: public CoordinateReferenceSystem createCoordinateReferenceSystem(
070: String arg0) throws FactoryException {
071: return null;
072: }
073:
074: /**
075: * @see org.opengis.referencing.crs.CRSAuthorityFactory#createCompoundCRS(java.lang.String)
076: */
077: public CompoundCRS createCompoundCRS(String arg0)
078: throws FactoryException {
079: return null;
080: }
081:
082: /**
083: * @see org.opengis.referencing.crs.CRSAuthorityFactory#createDerivedCRS(java.lang.String)
084: */
085: public DerivedCRS createDerivedCRS(String arg0)
086: throws FactoryException {
087: return null;
088: }
089:
090: /**
091: * @see org.opengis.referencing.crs.CRSAuthorityFactory#createEngineeringCRS(java.lang.String)
092: */
093: public EngineeringCRS createEngineeringCRS(String arg0)
094: throws FactoryException {
095: return null;
096: }
097:
098: /**
099: * @see org.opengis.referencing.crs.CRSAuthorityFactory#createGeographicCRS(java.lang.String)
100: */
101: public GeographicCRS createGeographicCRS(String arg0)
102: throws FactoryException {
103: return null;
104: }
105:
106: /**
107: * @see org.opengis.referencing.crs.CRSAuthorityFactory#createGeocentricCRS(java.lang.String)
108: */
109: public GeocentricCRS createGeocentricCRS(String arg0)
110: throws FactoryException {
111: return null;
112: }
113:
114: /**
115: * @see org.opengis.referencing.crs.CRSAuthorityFactory#createImageCRS(java.lang.String)
116: */
117: public ImageCRS createImageCRS(String arg0) throws FactoryException {
118: return null;
119: }
120:
121: /**
122: * @see org.opengis.referencing.crs.CRSAuthorityFactory#createProjectedCRS(java.lang.String)
123: */
124: public ProjectedCRS createProjectedCRS(String arg0)
125: throws FactoryException {
126: return null;
127: }
128:
129: /**
130: * @see org.opengis.referencing.crs.CRSAuthorityFactory#createTemporalCRS(java.lang.String)
131: */
132: public TemporalCRS createTemporalCRS(String arg0)
133: throws FactoryException {
134: return null;
135: }
136:
137: /**
138: * @see org.opengis.referencing.crs.CRSAuthorityFactory#createVerticalCRS(java.lang.String)
139: */
140: public VerticalCRS createVerticalCRS(String arg0)
141: throws FactoryException {
142: return null;
143: }
144:
145: /**
146: * @see org.opengis.referencing.AuthorityFactory#getObjectFactory()
147: *
148: * @deprecated This method will be removed from GeoAPI interfaces.
149: */
150: public ObjectFactory getObjectFactory() {
151: return factory;
152: }
153:
154: /**
155: * @see org.opengis.referencing.AuthorityFactory#getAuthority()
156: */
157: public Citation getAuthority() {
158: return null;
159: }
160:
161: /**
162: * @see org.opengis.referencing.AuthorityFactory#getAuthorityCodes(java.lang.Class)
163: */
164: public Set getAuthorityCodes(Class arg0) throws FactoryException {
165: return null;
166: }
167:
168: /**
169: * @see org.opengis.referencing.AuthorityFactory#getDescriptionText(java.lang.String)
170: */
171: public InternationalString getDescriptionText(String arg0)
172: throws FactoryException {
173: return null;
174: }
175:
176: /**
177: * @see org.opengis.referencing.AuthorityFactory#createObject(java.lang.String)
178: */
179: public IdentifiedObject createObject(String arg0)
180: throws FactoryException {
181: return null;
182: }
183:
184: /**
185: * @see org.opengis.referencing.Factory#getVendor()
186: */
187: public Citation getVendor() {
188: return null;
189: }
190:
191: }
|