org.deegree.services.wps.provider.sextante
Class VectorLayerImpl

java.lang.Object
  extended by es.unex.sextante.dataObjects.AbstractVectorLayer
      extended by org.deegree.services.wps.provider.sextante.VectorLayerImpl
All Implemented Interfaces:
es.unex.sextante.dataObjects.IDataObject, es.unex.sextante.dataObjects.ILayer, es.unex.sextante.dataObjects.IVectorLayer

public class VectorLayerImpl
extends es.unex.sextante.dataObjects.AbstractVectorLayer

Manages features to execute a SEXTANTE GeoAlgorithm.

Version:
$Revision: $, $Date: $
Author:
Jens Pabel, last edited by: $Author: pabel $

Field Summary
 
Fields inherited from class es.unex.sextante.dataObjects.AbstractVectorLayer
m_BaseDataObject, m_Filters
 
Fields inherited from interface es.unex.sextante.dataObjects.IVectorLayer
SHAPE_TYPE_LINE, SHAPE_TYPE_MIXED, SHAPE_TYPE_POINT, SHAPE_TYPE_POLYGON, SHAPE_TYPE_WRONG
 
Constructor Summary
VectorLayerImpl()
          Creates a VectorLayer with the coordinate reference System
"EPSG:4326" and the name "VectorLayer".
VectorLayerImpl(String name, String crs)
          Creates a VectorLayer.
VectorLayerImpl(String name, String crs, Field[] fields)
          Creates a VectorLayer.
 
Method Summary
 void addFeature(com.vividsolutions.jts.geom.Geometry geometry, Object[] attributes)
           
 void close()
           
 Object getCRS()
           
 Field getField(int index)
          Returns the Field.
 int getFieldCount()
           
 String getFieldName(int index)
           
 Field[] getFields()
          Returns all Fields.
 Class<?> getFieldType(int index)
           
 String getFilename()
           
 Rectangle2D getFullExtent()
           
 String getName()
           
 int getShapesCount()
           
 int getShapeType()
           
 es.unex.sextante.dataObjects.IFeatureIterator iterator()
           
 void open()
           
 void postProcess()
           
 void setName(String sName)
           
 
Methods inherited from class es.unex.sextante.dataObjects.AbstractVectorLayer
addFeature, addFilter, getBaseDataObject, getFieldIndexByName, getFieldNames, getFieldTypes, removeFilters, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VectorLayerImpl

public VectorLayerImpl()
Creates a VectorLayer with the coordinate reference System
"EPSG:4326" and the name "VectorLayer".
No attributes are provided for the geometries.


VectorLayerImpl

public VectorLayerImpl(String name,
                       String crs)
Creates a VectorLayer.
No attributes are provided for the geometries.

Parameters:
name - Layer name.
crs - Coordinate reference system.

VectorLayerImpl

public VectorLayerImpl(String name,
                       String crs,
                       Field[] fields)
Creates a VectorLayer.

Parameters:
name - Layer name.
crs - Coordinate reference system.
fields - Name and data type of geometry attributes.
Method Detail

addFeature

public void addFeature(com.vividsolutions.jts.geom.Geometry geometry,
                       Object[] attributes)

getFieldCount

public int getFieldCount()

getFieldName

public String getFieldName(int index)

getFieldType

public Class<?> getFieldType(int index)

getField

public Field getField(int index)
Returns the Field.

Parameters:
index - Index of the Field.
Returns:
Field.

getFields

public Field[] getFields()
Returns all Fields.

Returns:
All Fields.

getShapeType

public int getShapeType()

getShapesCount

public int getShapesCount()

iterator

public es.unex.sextante.dataObjects.IFeatureIterator iterator()

getCRS

public Object getCRS()

getFullExtent

public Rectangle2D getFullExtent()

close

public void close()

getFilename

public String getFilename()

getName

public String getName()

open

public void open()

postProcess

public void postProcess()
                 throws Exception
Throws:
Exception

setName

public void setName(String sName)


Copyright © 2011. All Rights Reserved.