|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.services.wps.provider.sextante.VectorLayerAdapter
public class VectorLayerAdapter
The VectorLayerAdapter
has methods to create a IVectorLayer
from a Geometry
,
Feature
or FeatureCollection
and methods to create a Geometry
, Feature
or FeatureCollection
from a IVectorLayer
.
Field Summary | |
---|---|
static String |
APP_NS
|
static String |
APP_PREFIX
|
Constructor Summary | |
---|---|
VectorLayerAdapter()
|
Method Summary | |
---|---|
static Feature |
createFeature(es.unex.sextante.dataObjects.IVectorLayer l)
Creates a Feature from an IVectorLayer . |
static GenericFeatureCollection |
createFeatureCollection(es.unex.sextante.dataObjects.IVectorLayer l)
Creates a FeatureCollection from an IVectorLayer . |
static Geometry |
createGeometry(es.unex.sextante.dataObjects.IVectorLayer l)
Creates a Geometry from an IVectorLayer . |
static VectorLayerImpl |
createVectorLayer(Feature f)
Creates an IVectorLayer from a Feature . |
static VectorLayerImpl |
createVectorLayer(FeatureCollection c)
Creates an IVectorLayer from a FeatureCollection . |
static VectorLayerImpl |
createVectorLayer(Geometry g)
Creates an IVectorLayer from a Geometry . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String APP_NS
public static final String APP_PREFIX
Constructor Detail |
---|
public VectorLayerAdapter()
Method Detail |
---|
public static VectorLayerImpl createVectorLayer(FeatureCollection c)
IVectorLayer
from a FeatureCollection
.
c
- The FeatureCollection
must contain simple Feature
s, this means that a Feature
has only one geometry and only properties with different names. If a Feature
has more
geometries, it will be used the first. If a Feature
has more properties with the same name, it
will be used the first. Some cases can't handled, if the Feature
s contains other
Feature
s. A Feature
without geometry will be skipped.
IVectorLayer
with IFeature
s. The IFeature
s contains only one
Geometry
and only properties with different names.public static VectorLayerImpl createVectorLayer(Feature f)
IVectorLayer
from a Feature
.
f
- The Feature
must be simple, this means that a Feature
has only one geometry and only
properties with different names. If a Feature
has more geometries, it will be used the first.
If a Feature
has more properties with the same name, it will be used the first. A case can't
handled, if the Feature
contains other Feature
s. If the Feature
is a
FeatureCollection
, it can handled. A Feature
without geometry will be skipped.
IVectorLayer
with a IFeature
. The IFeature
contains only one
Geometry
and only properties with different names.public static VectorLayerImpl createVectorLayer(Geometry g)
IVectorLayer
from a Geometry
.
g
- If the Geometry
isn't simple, it will be linearized.
IVectorLayer
with a IFeature
. The IFeature
contains only one
Geometry
and no properties.public static GenericFeatureCollection createFeatureCollection(es.unex.sextante.dataObjects.IVectorLayer l) throws es.unex.sextante.exceptions.IteratorException, IllegalArgumentException, InstantiationException, IllegalAccessException
FeatureCollection
from an IVectorLayer
.
l
- Every IVectorLayer
.
FeatureCollection
es.unex.sextante.exceptions.IteratorException
IllegalArgumentException
InstantiationException
IllegalAccessException
public static Feature createFeature(es.unex.sextante.dataObjects.IVectorLayer l) throws es.unex.sextante.exceptions.IteratorException, IllegalArgumentException, InstantiationException, IllegalAccessException
Feature
from an IVectorLayer
.
l
- IVectorLayer
es.unex.sextante.exceptions.IteratorException
IllegalArgumentException
InstantiationException
IllegalAccessException
public static Geometry createGeometry(es.unex.sextante.dataObjects.IVectorLayer l) throws es.unex.sextante.exceptions.IteratorException
Geometry
from an IVectorLayer
.
l
- Every IVectorLayer
.
Geometry
. If the IVectorLayer
contains more than one IFeature
, they
will be merged to a MultiGeometry.
es.unex.sextante.exceptions.IteratorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |