/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2011, Open Source Geospatial Foundation (OSGeo)
* (C) 2004-2007 Open Geospatial Consortium Inc.
*
* All Rights Reserved. http://www.opengis.org/legal/
*/
package org.opengis.feature.type;
import org.opengis.referencing.crs.CoordinateReferenceSystem;
/**
* Describes an instance of a geometry attribute.
* <p>
* This interface adds no additional methods, the point of it is convenience
* to type narrow {@link #getType()} to {@link GeometryType}.
* </p>
* @author Justin Deoliveira, The Open Planning Project
*
*
* @source $URL: http://svn.osgeo.org/geotools/trunk/modules/library/opengis/src/main/java/org/opengis/feature/type/GeometryDescriptor.java $
*/
public interface GeometryDescriptor extends AttributeDescriptor {
/**
* Override of {@link AttributeDescriptor#getType()} which type narrows
* to {@link GeometryType}.
*/
GeometryType getType();
/**
* The coordinate reference system in which these geometries are defined.
* <p>
* This method may return <code>null</code>, 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.
* </p>
*/
CoordinateReferenceSystem getCoordinateReferenceSystem();
}