Java Doc for PropertyAuthorityFactory.java in  » GIS » GeoTools-2.4.1 » org » geotools » referencing » factory » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.referencing.factory 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.referencing.factory.ReferencingFactory
   org.geotools.referencing.factory.AbstractAuthorityFactory
      org.geotools.referencing.factory.DirectAuthorityFactory
         org.geotools.referencing.factory.PropertyAuthorityFactory

PropertyAuthorityFactory
public class PropertyAuthorityFactory extends DirectAuthorityFactory implements CRSAuthorityFactory,CSAuthorityFactory,DatumAuthorityFactory(Code)
Default implementation for a coordinate reference system authority factory backed by a property file. This gives some of the benificts of using the (for example), in a portable property file.

This factory doesn't cache any result. Any call to a createFoo method will trig a new WKT parsing. For caching, this factory should be wrapped in some buffered factory like BufferedAuthorityFactory .
since:
   2.1
version:
   $Id: PropertyAuthorityFactory.java 29104 2008-02-06 16:00:14Z aaime $
author:
   Jody Garnett
author:
   Rueben Schulz
author:
   Martin Desruisseaux




Constructor Summary
public  PropertyAuthorityFactory(ReferencingFactoryContainer factories, Citation authority, URL definitions)
     Creates a factory for the specified authority from the specified file.
public  PropertyAuthorityFactory(ReferencingFactoryContainer factories, Citation[] authorities, URL definitions)
     Creates a factory for the specified authorities from the specified file.

Method Summary
public  CoordinateReferenceSystemcreateCoordinateReferenceSystem(String code)
     Returns a coordinate reference system from a code.
public  IdentifiedObjectcreateObject(String code)
     Returns an arbitrary object from a code.
public  CitationgetAuthority()
     Returns the organization or party responsible for definition and maintenance of the database.
public  SetgetAuthorityCodes(Class type)
     Returns the set of authority codes of the given type.
public  InternationalStringgetDescriptionText(String code)
     Gets a description of the object corresponding to a code.
Parameters:
  code - Value allocated by authority.
public  StringgetWKT(String code)
     Returns the Well Know Text from a code.
Parameters:
  code - Value allocated by authority.
protected  StringtrimAuthority(String code)
     Trims the authority scope, if present.


Constructor Detail
PropertyAuthorityFactory
public PropertyAuthorityFactory(ReferencingFactoryContainer factories, Citation authority, URL definitions) throws IOException(Code)
Creates a factory for the specified authority from the specified file.
Parameters:
  factories - The underlying factories used for objects creation.
Parameters:
  authority - The organization or party responsible for definition and maintenance ofthe database.
Parameters:
  definitions - URL to the definition file.
throws:
  IOException - if the definitions can't be read.



PropertyAuthorityFactory
public PropertyAuthorityFactory(ReferencingFactoryContainer factories, Citation[] authorities, URL definitions) throws IOException(Code)
Creates a factory for the specified authorities from the specified file. More than one authority may be specified when the CRS to create should have more than one , each with the same code but different namespace. For example a uses the "ESRI" namespace, but also the "EPSG" namespace because those CRS are used as extension of the EPSG database. Concequently, the same CRS can be identified as "ESRI:53001" and "EPSG:53001" , where "53001" is a unused code in the official EPSG database.
Parameters:
  factories - The underlying factories used for objects creation.
Parameters:
  authorities - The organizations or party responsible for definitionand maintenance of the database.
Parameters:
  definitions - URL to the definition file.
throws:
  IOException - if the definitions can't be read.
since:
   2.4




Method Detail
createCoordinateReferenceSystem
public CoordinateReferenceSystem createCoordinateReferenceSystem(String code) throws NoSuchAuthorityCodeException, FactoryException(Code)
Returns a coordinate reference system from a code. If the object type is know at compile time, it is recommended to invoke the most precise method instead of this one.
Parameters:
  code - Value allocated by authority.
throws:
  NoSuchAuthorityCodeException - if the specified code was not found.
throws:
  FactoryException - if the object creation failed for some other reason.



createObject
public IdentifiedObject createObject(String code) throws NoSuchAuthorityCodeException, FactoryException(Code)
Returns an arbitrary object from a code. If the object type is know at compile time, it is recommended to invoke the most precise method instead of this one.
Parameters:
  code - Value allocated by authority.
throws:
  NoSuchAuthorityCodeException - if the specified code was not found.
throws:
  FactoryException - if the object creation failed for some other reason.



getAuthority
public Citation getAuthority()(Code)
Returns the organization or party responsible for definition and maintenance of the database.



getAuthorityCodes
public Set getAuthorityCodes(Class type) throws FactoryException(Code)
Returns the set of authority codes of the given type. The type argument specify the base class. For example if this factory is an instance of CRSAuthorityFactory, then:

The default implementaiton filters the set of codes based on the "PROJCS" and "GEOGCS" at the start of the WKT strings.
Parameters:
  type - The spatial reference objects type (may be Object.class ). The set of authority codes for spatial reference objects of the given type.If this factory doesn't contains any object of the given type, then this methodreturns an empty set.
throws:
  FactoryException - if access to the underlying database failed.



getDescriptionText
public InternationalString getDescriptionText(String code) throws NoSuchAuthorityCodeException, FactoryException(Code)
Gets a description of the object corresponding to a code.
Parameters:
  code - Value allocated by authority. A description of the object, or null if the objectcorresponding to the specified code has no description.
throws:
  NoSuchAuthorityCodeException - if the specified code was not found.
throws:
  FactoryException - if the query failed for some other reason.



getWKT
public String getWKT(String code) throws NoSuchAuthorityCodeException(Code)
Returns the Well Know Text from a code.
Parameters:
  code - Value allocated by authority. The Well Know Text (WKT) for the specified code.
throws:
  NoSuchAuthorityCodeException - if the specified code was not found.



trimAuthority
protected String trimAuthority(String code)(Code)
Trims the authority scope, if present. If more than one authority were given at , then any of them may appears as the scope in the supplied code.
Parameters:
  code - The code to trim. The code without the authority scope.



Fields inherited from org.geotools.referencing.factory.DirectAuthorityFactory
final protected ReferencingFactoryContainer factories(Code)(Java Doc)

Methods inherited from org.geotools.referencing.factory.DirectAuthorityFactory
Collection dependencies()(Code)(Java Doc)
public Map getImplementationHints()(Code)(Java Doc)

Methods inherited from org.geotools.referencing.factory.AbstractAuthorityFactory
public CartesianCS createCartesianCS(String code) throws FactoryException(Code)(Java Doc)
public CompoundCRS createCompoundCRS(String code) throws FactoryException(Code)(Java Doc)
public CoordinateOperation createCoordinateOperation(String code) throws FactoryException(Code)(Java Doc)
public CoordinateReferenceSystem createCoordinateReferenceSystem(String code) throws FactoryException(Code)(Java Doc)
public CoordinateSystem createCoordinateSystem(String code) throws FactoryException(Code)(Java Doc)
public CoordinateSystemAxis createCoordinateSystemAxis(String code) throws FactoryException(Code)(Java Doc)
public CylindricalCS createCylindricalCS(String code) throws FactoryException(Code)(Java Doc)
public Datum createDatum(String code) throws FactoryException(Code)(Java Doc)
public DerivedCRS createDerivedCRS(String code) throws FactoryException(Code)(Java Doc)
public Ellipsoid createEllipsoid(String code) throws FactoryException(Code)(Java Doc)
public EllipsoidalCS createEllipsoidalCS(String code) throws FactoryException(Code)(Java Doc)
public EngineeringCRS createEngineeringCRS(String code) throws FactoryException(Code)(Java Doc)
public EngineeringDatum createEngineeringDatum(String code) throws FactoryException(Code)(Java Doc)
public Extent createExtent(String code) throws FactoryException(Code)(Java Doc)
public Set createFromCoordinateReferenceSystemCodes(String sourceCode, String targetCode) throws FactoryException(Code)(Java Doc)
public GeocentricCRS createGeocentricCRS(String code) throws FactoryException(Code)(Java Doc)
public GeodeticDatum createGeodeticDatum(String code) throws FactoryException(Code)(Java Doc)
public GeographicCRS createGeographicCRS(String code) throws FactoryException(Code)(Java Doc)
public ImageCRS createImageCRS(String code) throws FactoryException(Code)(Java Doc)
public ImageDatum createImageDatum(String code) throws FactoryException(Code)(Java Doc)
public IdentifiedObject createObject(String code) throws FactoryException(Code)(Java Doc)
public OperationMethod createOperationMethod(String code) throws FactoryException(Code)(Java Doc)
public ParameterDescriptor createParameterDescriptor(String code) throws FactoryException(Code)(Java Doc)
public PolarCS createPolarCS(String code) throws FactoryException(Code)(Java Doc)
public PrimeMeridian createPrimeMeridian(String code) throws FactoryException(Code)(Java Doc)
public ProjectedCRS createProjectedCRS(String code) throws FactoryException(Code)(Java Doc)
public SphericalCS createSphericalCS(String code) throws FactoryException(Code)(Java Doc)
public TemporalCRS createTemporalCRS(String code) throws FactoryException(Code)(Java Doc)
public TemporalDatum createTemporalDatum(String code) throws FactoryException(Code)(Java Doc)
public TimeCS createTimeCS(String code) throws FactoryException(Code)(Java Doc)
public Unit createUnit(String code) throws FactoryException(Code)(Java Doc)
public VerticalCRS createVerticalCRS(String code) throws FactoryException(Code)(Java Doc)
public VerticalCS createVerticalCS(String code) throws FactoryException(Code)(Java Doc)
public VerticalDatum createVerticalDatum(String code) throws FactoryException(Code)(Java Doc)
public void dispose() throws FactoryException(Code)(Java Doc)
abstract public Citation getAuthority()(Code)(Java Doc)
public String getBackingStoreDescription() throws FactoryException(Code)(Java Doc)
public IdentifiedObjectFinder getIdentifiedObjectFinder(Class type) throws FactoryException(Code)(Java Doc)
boolean isAvailable()(Code)(Java Doc)
final protected NoSuchAuthorityCodeException noSuchAuthorityCode(Class type, String code)(Code)(Java Doc)
boolean sameAuthorityCodes(AuthorityFactory factory)(Code)(Java Doc)
protected String trimAuthority(String code)(Code)(Java Doc)

Fields inherited from org.geotools.referencing.factory.ReferencingFactory
final static Citation ALL(Code)(Java Doc)
final public static Logger LOGGER(Code)(Java Doc)

Methods inherited from org.geotools.referencing.factory.ReferencingFactory
Collection dependencies()(Code)(Java Doc)
protected static void ensureNonNull(String name, Object object) throws InvalidParameterValueException(Code)(Java Doc)
public Citation getVendor()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.