Package org.geotools.feature.type
Class GeometryTypeImpl
- Object
-
- PropertyTypeImpl
-
- AttributeTypeImpl
-
- GeometryTypeImpl
-
- All Implemented Interfaces:
AttributeType
,GeometryType
,PropertyType
public class GeometryTypeImpl extends AttributeTypeImpl implements GeometryType
AttributeType for hold geometry implementations, maintains CRS information.
-
-
Field Summary
Fields Modifier and Type Field Description protected CoordinateReferenceSystem
CRS
-
Fields inherited from class AttributeTypeImpl
identified
-
Fields inherited from class PropertyTypeImpl
binding, description, isAbstract, name, restrictions, superType, userData
-
-
Constructor Summary
Constructors Constructor Description GeometryTypeImpl(Name name, Class binding, CoordinateReferenceSystem crs, boolean identified, boolean isAbstract, List<Filter> restrictions, AttributeType superType, InternationalString description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
Override of equals.CoordinateReferenceSystem
getCoordinateReferenceSystem()
The coordinate reference system in which geometries are defined.int
hashCode()
Override of hashcode.-
Methods inherited from class AttributeTypeImpl
createDefaultValue, getSuper, isIdentified, parse, toString
-
Methods inherited from class PropertyTypeImpl
getBinding, getDescription, getName, getRestrictions, getUserData, isAbstract
-
Methods inherited from interface AttributeType
getSuper, isIdentified
-
Methods inherited from interface PropertyType
getBinding, getDescription, getName, getRestrictions, getUserData, isAbstract
-
-
-
-
Field Detail
-
CRS
protected CoordinateReferenceSystem CRS
-
-
Constructor Detail
-
GeometryTypeImpl
public GeometryTypeImpl(Name name, Class binding, CoordinateReferenceSystem crs, boolean identified, boolean isAbstract, List<Filter> restrictions, AttributeType superType, InternationalString description)
-
-
Method Detail
-
getCoordinateReferenceSystem
public CoordinateReferenceSystem getCoordinateReferenceSystem()
Description copied from interface:GeometryType
The coordinate reference system in which geometries are defined.This method may return
null
, but this should only occur in cases where the actual crs is not known. A common case is when a shapefile does not have an accompanied .prj file.- Specified by:
getCoordinateReferenceSystem
in interfaceGeometryType
-
hashCode
public int hashCode()
Description copied from class:AttributeTypeImpl
Override of hashcode.- Specified by:
hashCode
in interfacePropertyType
- Overrides:
hashCode
in classAttributeTypeImpl
- Returns:
- getName().hashCode()
-
equals
public boolean equals(Object other)
Description copied from class:AttributeTypeImpl
Override of equals.- Specified by:
equals
in interfacePropertyType
- Overrides:
equals
in classAttributeTypeImpl
- Parameters:
other
- the object to be tested for equality.- Returns:
- whether other is equal to this attribute Type.
-
-