org.geotools.feature.type
Class GeometricAttributeType

Object
  extended by PropertyDescriptorImpl
      extended by AttributeDescriptorImpl
          extended by DefaultAttributeType
              extended by GeometricAttributeType
All Implemented Interfaces:
AttributeType, GeometryAttributeType, PrimativeAttributeType, AttributeDescriptor, GeometryDescriptor, PropertyDescriptor

Deprecated. use GeometryTypeImpl.

public class GeometricAttributeType
extends DefaultAttributeType
implements GeometryAttributeType

Provides ...TODO summary sentence

TODO Description

Example Use:


 GeometryAttributeType x = new GeometryAttributeType( ... );
 TODO code example
 

Since:
0.3 TODO: test wkt geometry parse.
Author:
Leprosy
Module:
modules/library/legacy (gt-legacy.jar)

Field Summary
protected  GeometryFactory geometryFactory
          Deprecated. CoordianteSystem used by this GeometryAttributeType
 
Fields inherited from class AttributeDescriptorImpl
defaultValue
 
Fields inherited from class PropertyDescriptorImpl
isNillable, maxOccurs, minOccurs, name, type
 
Constructor Summary
  GeometricAttributeType(GeometricAttributeType copy, CoordinateReferenceSystem override)
          Deprecated.  
protected GeometricAttributeType(GeometryType type, Name name, int min, int max, boolean isNillable, Object defaultValue)
          Deprecated.  
  GeometricAttributeType(String name, Class type, boolean nillable, int min, int max, Object defaultValue, CoordinateReferenceSystem crs, Filter filter)
          Deprecated.  
  GeometricAttributeType(String name, Class type, boolean nillable, Object defaultValue, CoordinateReferenceSystem cs, Filter filter)
          Deprecated.  
 
Method Summary
static GeometryType createAttributeType(String name, Class binding, CoordinateReferenceSystem crs, Filter restriction)
          Deprecated.  
static CoordinateReferenceSystem crs(CoordinateReferenceSystem override)
          Deprecated.  
 Object duplicate(Object o)
          Deprecated. Return a safe Object copy.
 CoordinateReferenceSystem getCoordinateReferenceSystem()
          Deprecated.  
 CoordinateReferenceSystem getCoordinateSystem()
          Deprecated. Retrieve the CS_CoordinateSystem used by this GeometryAttributeType.
 GeometryFactory getGeometryFactory()
          Deprecated. The Geometryfactory used for creating new content.
 GeometryType getType()
          Deprecated.  
 
Methods inherited from class DefaultAttributeType
createAttributeType, createDefaultValue, equals, getBinding, getBinding, getLocalName, getLocalName, getRestriction, getRestriction, hashCode, isGeometry, parse, toString, validate
 
Methods inherited from class AttributeDescriptorImpl
getDefaultValue
 
Methods inherited from class PropertyDescriptorImpl
getMaxOccurs, getMinOccurs, getName, getUserData, isNillable
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface GeometryAttributeType
getBinding, getRestriction, isGeometry
 

Field Detail

geometryFactory

protected GeometryFactory geometryFactory
Deprecated. 
CoordianteSystem used by this GeometryAttributeType

Constructor Detail

GeometricAttributeType

public GeometricAttributeType(String name,
                              Class type,
                              boolean nillable,
                              int min,
                              int max,
                              Object defaultValue,
                              CoordinateReferenceSystem crs,
                              Filter filter)
Deprecated. 

GeometricAttributeType

public GeometricAttributeType(String name,
                              Class type,
                              boolean nillable,
                              Object defaultValue,
                              CoordinateReferenceSystem cs,
                              Filter filter)
Deprecated. 

GeometricAttributeType

public GeometricAttributeType(GeometricAttributeType copy,
                              CoordinateReferenceSystem override)
Deprecated. 

GeometricAttributeType

protected GeometricAttributeType(GeometryType type,
                                 Name name,
                                 int min,
                                 int max,
                                 boolean isNillable,
                                 Object defaultValue)
Deprecated. 
Method Detail

getType

public GeometryType getType()
Deprecated. 
Specified by:
getType in interface AttributeDescriptor
Specified by:
getType in interface GeometryDescriptor
Specified by:
getType in interface PropertyDescriptor
Overrides:
getType in class AttributeDescriptorImpl

getCoordinateSystem

public CoordinateReferenceSystem getCoordinateSystem()
Deprecated. 
Description copied from interface: GeometryAttributeType
Retrieve the CS_CoordinateSystem used by this GeometryAttributeType.

OUT OF DATE: The class CoordinateSystem holds a GeometryFactory that is used for creating new content. By extension this includes the SRID, PercisionModel and CoordinateSequenceFactory information.

Specified by:
getCoordinateSystem in interface GeometryAttributeType
Returns:
The coordinate reference system for this GeometryAttributeType

getCoordinateReferenceSystem

public CoordinateReferenceSystem getCoordinateReferenceSystem()
Deprecated. 
Specified by:
getCoordinateReferenceSystem in interface GeometryDescriptor

getGeometryFactory

public GeometryFactory getGeometryFactory()
Deprecated. 
Description copied from interface: GeometryAttributeType
The Geometryfactory used for creating new content.

Replace with the following code:


 Map hints = new HashMap();
 hints.put( CoordinateReferneceSystem.class, type.getCoordinateSystem() );
 GeometryFactory gf = FactoryFinder.getGeometryFactory( Map hints );

 // You can now use gf create methods
 

Specified by:
getGeometryFactory in interface GeometryAttributeType
Returns:
GeometryFactory used for new Content

duplicate

public Object duplicate(Object o)
                 throws IllegalAttributeException
Deprecated. 
Description copied from class: DefaultAttributeType
Return a safe Object copy.

Obtain a duplicate Object if the object is mutable, or the same Object reference if it is immutable.

Specified by:
duplicate in interface AttributeType
Overrides:
duplicate in class DefaultAttributeType
Parameters:
o - The Object to duplicate.
Returns:
A duplicated Object if the type is mutable or the same Object if it is immutable or null if the passed Object is null.
Throws:
IllegalAttributeException - if the Object cannot be duplicated.

crs

public static CoordinateReferenceSystem crs(CoordinateReferenceSystem override)
Deprecated. 

createAttributeType

public static GeometryType createAttributeType(String name,
                                               Class binding,
                                               CoordinateReferenceSystem crs,
                                               Filter restriction)
Deprecated. 


Copyright © 1996-2009 Geotools. All Rights Reserved.