Java Doc for FeatureTypes.java in  » GIS » GeoTools-2.4.1 » org » geotools » feature » 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.feature 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.geotools.feature.FeatureTypes

All known Subclasses:   org.geotools.feature.FeatureTypeBuilder,
FeatureTypes
public class FeatureTypes (Code)
Utility methods for working against the FeatureType interface.

Many methods from DataUtilities should be refractored here.

Responsibilities:

  • Schema construction from String spec
  • Schema Force CRS

author:
   Jody Garnett, Refractions Research
since:
   2.1.M3


Field Summary
final public static  intANY_LENGTH
    
final public static  URIDEFAULT_NAMESPACE
    


Method Summary
public static  Setancestors(FeatureType featureType)
    
public static  booleanequals(FeatureType typeA, FeatureType typeB)
    
public static  booleanequals(AttributeType attributesA, AttributeType attributesB)
    
public static  booleanequals(AttributeType a, AttributeType b)
    
public static  booleanequalsAncestors(FeatureType typeA, FeatureType typeB)
    
public static  booleanequalsId(FeatureType typeA, FeatureType typeB)
    
public static  intgetFieldLength(AttributeType type)
     This is a 'suitable replacement for extracting the expected field length of an attribute absed on its "facets" (ie Filter describing type restrictions);

This code is copied from the ShapefileDataStore where it was written (probably by dzwiers).

public static  booleanisDecendedFrom(FeatureType featureType, URI namespace, String typeName)
     A query of the the types ancestor information.
public static  booleanisDecendedFrom(FeatureType featureType, FeatureType isParentType)
    
public static  FeatureTypenewFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract, FeatureType[] superTypes)
     The most specific way to create a new FeatureType.
Parameters:
  types - The AttributeTypes to create the FeatureType with.
Parameters:
  name - The typeName of the FeatureType.
public static  FeatureTypenewFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract, FeatureType[] superTypes, AttributeType defaultGeometry)
     The most specific way to create a new FeatureType.
Parameters:
  types - The AttributeTypes to create the FeatureType with.
Parameters:
  name - The typeName of the FeatureType.
public static  FeatureTypenewFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract, FeatureType[] superTypes, GeometryAttributeType defaultGeometry)
     The most specific way to create a new FeatureType.
Parameters:
  types - The AttributeTypes to create the FeatureType with.
Parameters:
  name - The typeName of the FeatureType.
public static  FeatureTypenewFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract)
     Create a new FeatureType with the given AttributeTypes.
public static  FeatureTypenewFeatureType(AttributeType[] types, String name, URI ns)
     Create a new FeatureType with the given AttributeTypes.
public static  FeatureTypenewFeatureType(AttributeType[] types, String name)
     Create a new FeatureType with the given AttributeTypes.
public static  FeatureTypetransform(FeatureType schema, CoordinateReferenceSystem crs)
    
public static  FeatureTypetransform(FeatureType schema, CoordinateReferenceSystem crs, boolean forceOnlyMissing)
     Forces the specified CRS on geometry attributes (all or some, depends on the parameters).
public static  Featuretransform(Feature feature, FeatureType schema, MathTransform transform)
     Applies transform to all geometry attribute.

Field Detail
ANY_LENGTH
final public static int ANY_LENGTH(Code)
represent an unbounded field length



DEFAULT_NAMESPACE
final public static URI DEFAULT_NAMESPACE(Code)
the default namespace for feature types





Method Detail
ancestors
public static Set ancestors(FeatureType featureType)(Code)



equals
public static boolean equals(FeatureType typeA, FeatureType typeB)(Code)
Exact equality based on typeNames, namespace, attributes and ancestors



equals
public static boolean equals(AttributeType attributesA, AttributeType attributesB)(Code)



equals
public static boolean equals(AttributeType a, AttributeType b)(Code)



equalsAncestors
public static boolean equalsAncestors(FeatureType typeA, FeatureType typeB)(Code)
This method depends on the correct implementation of FeatureType equals

We may need to write an implementation that can detect cycles,


Parameters:
  typeA -
Parameters:
  typeB -



equalsId
public static boolean equalsId(FeatureType typeA, FeatureType typeB)(Code)
Quick check of namespace and typename



getFieldLength
public static int getFieldLength(AttributeType type)(Code)
This is a 'suitable replacement for extracting the expected field length of an attribute absed on its "facets" (ie Filter describing type restrictions);

This code is copied from the ShapefileDataStore where it was written (probably by dzwiers). Cholmes is providing documentation.


Parameters:
  type - the AttributeType an int indicating the max length of field in characters, or ANY_LENGTH



isDecendedFrom
public static boolean isDecendedFrom(FeatureType featureType, URI namespace, String typeName)(Code)
A query of the the types ancestor information.

This utility method may be used as common implementation for FeatureType.isDecendedFrom( namespace, typeName ), however for specific uses, such as GML, an implementor may be able to provide a more efficient implemenation based on prior knolwege.

This is a proper check, if the provided FeatureType matches the given namespace and typename it is not considered to be decended from itself.


Parameters:
  featureType - typeName with parentage in question
Parameters:
  namespace - namespace to match against, or null for a "wildcard"
Parameters:
  typeName - typename to match against, or null for a "wildcard" true if featureType is a decendent of the indicated namespace & typeName



isDecendedFrom
public static boolean isDecendedFrom(FeatureType featureType, FeatureType isParentType)(Code)



newFeatureType
public static FeatureType newFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract, FeatureType[] superTypes) throws FactoryConfigurationError, SchemaException(Code)
The most specific way to create a new FeatureType.
Parameters:
  types - The AttributeTypes to create the FeatureType with.
Parameters:
  name - The typeName of the FeatureType. Required, may not be null.
Parameters:
  ns - The namespace of the FeatureType. Optional, may be null.
Parameters:
  isAbstract - True if this created type should be abstract.
Parameters:
  superTypes - A Collection of types the FeatureType will inherit from. Currently, alltypes inherit from feature in the opengis namespace. A new FeatureType created from the given arguments.
throws:
  FactoryConfigurationError - If there are problems creating a factory.
throws:
  SchemaException - If the AttributeTypes provided are invalid in some way.



newFeatureType
public static FeatureType newFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract, FeatureType[] superTypes, AttributeType defaultGeometry) throws FactoryConfigurationError, SchemaException(Code)
The most specific way to create a new FeatureType.
Parameters:
  types - The AttributeTypes to create the FeatureType with.
Parameters:
  name - The typeName of the FeatureType. Required, may not be null.
Parameters:
  ns - The namespace of the FeatureType. Optional, may be null.
Parameters:
  isAbstract - True if this created type should be abstract.
Parameters:
  superTypes - A Collection of types the FeatureType will inherit from. Currently, alltypes inherit from feature in the opengis namespace. A new FeatureType created from the given arguments.
throws:
  FactoryConfigurationError - If there are problems creating a factory.
throws:
  SchemaException - If the AttributeTypes provided are invalid in some way.



newFeatureType
public static FeatureType newFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract, FeatureType[] superTypes, GeometryAttributeType defaultGeometry) throws FactoryConfigurationError, SchemaException(Code)
The most specific way to create a new FeatureType.
Parameters:
  types - The AttributeTypes to create the FeatureType with.
Parameters:
  name - The typeName of the FeatureType. Required, may not be null.
Parameters:
  ns - The namespace of the FeatureType. Optional, may be null.
Parameters:
  isAbstract - True if this created type should be abstract.
Parameters:
  superTypes - A Collection of types the FeatureType will inherit from. Currently, alltypes inherit from feature in the opengis namespace. A new FeatureType created from the given arguments.
throws:
  FactoryConfigurationError - If there are problems creating a factory.
throws:
  SchemaException - If the AttributeTypes provided are invalid in some way.



newFeatureType
public static FeatureType newFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract) throws FactoryConfigurationError, SchemaException(Code)
Create a new FeatureType with the given AttributeTypes. A short cut for calling newFeatureType(types,name,ns,isAbstract,null).
Parameters:
  types - The AttributeTypes to create the FeatureType with.
Parameters:
  name - The typeName of the FeatureType. Required, may not be null.
Parameters:
  ns - The namespace of the FeatureType. Optional, may be null.
Parameters:
  isAbstract - True if this created type should be abstract. A new FeatureType created from the given arguments.
throws:
  FactoryConfigurationError - If there are problems creating a factory.
throws:
  SchemaException - If the AttributeTypes provided are invalid in some way.



newFeatureType
public static FeatureType newFeatureType(AttributeType[] types, String name, URI ns) throws FactoryConfigurationError, SchemaException(Code)
Create a new FeatureType with the given AttributeTypes. A short cut for calling newFeatureType(types,name,ns,false,null).
Parameters:
  types - The AttributeTypes to create the FeatureType with.
Parameters:
  name - The typeName of the FeatureType. Required, may not be null.
Parameters:
  ns - The namespace of the FeatureType. Optional, may be null. A new FeatureType created from the given arguments.
throws:
  FactoryConfigurationError - If there are problems creating a factory.
throws:
  SchemaException - If the AttributeTypes provided are invalid in some way.



newFeatureType
public static FeatureType newFeatureType(AttributeType[] types, String name) throws FactoryConfigurationError, SchemaException(Code)
Create a new FeatureType with the given AttributeTypes. A short cut for calling newFeatureType(types,name,null,false,null). Useful for test cases or datasources which may not allow a namespace.
Parameters:
  types - The AttributeTypes to create the FeatureType with.
Parameters:
  name - The typeName of the FeatureType. Required, may not be null. A new FeatureType created from the given arguments.
throws:
  FactoryConfigurationError - If there are problems creating a factory.
throws:
  SchemaException - If the AttributeTypes provided are invalid in some way.



transform
public static FeatureType transform(FeatureType schema, CoordinateReferenceSystem crs) throws SchemaException(Code)
Forces the specified CRS on all geometry attributes
Parameters:
  schema - the original schema
Parameters:
  crs - the forced crs
throws:
  SchemaException -



transform
public static FeatureType transform(FeatureType schema, CoordinateReferenceSystem crs, boolean forceOnlyMissing) throws SchemaException(Code)
Forces the specified CRS on geometry attributes (all or some, depends on the parameters).
Parameters:
  schema - the original schema
Parameters:
  crs - the forced crs
Parameters:
  forceOnlyMissing - if true, will force the specified crs only on the attributes that do miss one
throws:
  SchemaException -



transform
public static Feature transform(Feature feature, FeatureType schema, MathTransform transform) throws MismatchedDimensionException, TransformException, IllegalAttributeException(Code)
Applies transform to all geometry attribute.
Parameters:
  feature - Feature to be transformed
Parameters:
  schema - Schema for target transformation - transform( schema, crs )
Parameters:
  transform - MathTransform used to transform coordinates - reproject( crs, crs ) transformed Feature of type schema
throws:
  TransformException -
throws:
  MismatchedDimensionException -
throws:
  IllegalAttributeException -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.