org.geotools.data.postgis.referencing
Class PostgisAuthorityFactory

java.lang.Object
  extended by org.geotools.data.jdbc.referencing.JDBCAuthorityFactory
      extended by org.geotools.data.postgis.referencing.PostgisAuthorityFactory
All Implemented Interfaces:
org.opengis.referencing.AuthorityFactory, org.opengis.referencing.crs.CRSAuthorityFactory, org.opengis.referencing.Factory

public class PostgisAuthorityFactory
extends JDBCAuthorityFactory

Access CRS informationj from the PostGIS SPATIAL_REF_SYS table.

Author:
Jesse Eichar

Field Summary
 
Fields inherited from class org.geotools.data.jdbc.referencing.JDBCAuthorityFactory
dataSource, factory
 
Constructor Summary
PostgisAuthorityFactory(javax.sql.DataSource pool)
          Construct PostgisAuthorityFactory.
 
Method Summary
 org.opengis.referencing.crs.CoordinateReferenceSystem createCRS(int srid)
           
protected  org.opengis.referencing.crs.CoordinateReferenceSystem createFromAuthority(java.lang.String authName, int srid)
           
protected  org.opengis.referencing.crs.CoordinateReferenceSystem createFromWKT(java.sql.ResultSet result)
           
 
Methods inherited from class org.geotools.data.jdbc.referencing.JDBCAuthorityFactory
createCompoundCRS, createCoordinateReferenceSystem, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createObject, createProjectedCRS, createTemporalCRS, createVerticalCRS, getAuthority, getAuthorityCodes, getDescriptionText, getObjectFactory, getVendor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostgisAuthorityFactory

public PostgisAuthorityFactory(javax.sql.DataSource pool)
Construct PostgisAuthorityFactory.

Parameters:
pool -
Method Detail

createCRS

public org.opengis.referencing.crs.CoordinateReferenceSystem createCRS(int srid)
                                                                throws org.opengis.referencing.FactoryException,
                                                                       java.io.IOException
Throws:
org.opengis.referencing.FactoryException
java.io.IOException

createFromWKT

protected org.opengis.referencing.crs.CoordinateReferenceSystem createFromWKT(java.sql.ResultSet result)
                                                                       throws DataSourceException,
                                                                              org.opengis.referencing.FactoryException
Throws:
DataSourceException
org.opengis.referencing.FactoryException

createFromAuthority

protected org.opengis.referencing.crs.CoordinateReferenceSystem createFromAuthority(java.lang.String authName,
                                                                                    int srid)
                                                                             throws DataSourceException,
                                                                                    org.opengis.referencing.FactoryException
Throws:
DataSourceException
org.opengis.referencing.FactoryException


Copyright © 1996-2010 Geotools. All Rights Reserved.