public class VectorDataNode extends ProductNode
Product.getVectorDataGroup()
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_NAME_DEFAULT_STYLE_CSS |
static String |
PROPERTY_NAME_FEATURE_COLLECTION |
static String |
PROPERTY_NAME_STYLE_CSS |
PROPERTY_NAME_DESCRIPTION, PROPERTY_NAME_NAME
Constructor and Description |
---|
VectorDataNode(String name,
org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> featureCollection)
Constructs a new vector data node for the given feature collection.
|
VectorDataNode(String name,
org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> featureCollection,
PlacemarkDescriptor placemarkDescriptor)
Constructs a new vector data node for the given feature collection and placemark descriptor.
|
VectorDataNode(String name,
org.opengis.feature.simple.SimpleFeatureType featureType)
Constructs a new vector data node for the given feature type.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(ProductVisitor visitor)
Accepts the given visitor.
|
void |
fireFeaturesAdded(org.opengis.feature.simple.SimpleFeature... features)
Deprecated.
since 6.0, method is public by accident, should only be used internally
|
void |
fireFeaturesChanged(org.opengis.feature.simple.SimpleFeature... features)
Deprecated.
since 6.0, method is public by accident, should only be used internally
|
void |
fireFeaturesRemoved(org.opengis.feature.simple.SimpleFeature... features)
Deprecated.
since 6.0, method is public by accident, should only be used internally
|
String |
getDefaultCSS()
Deprecated.
since BEAM 4.10, use getDefaultStyleCss()
|
String |
getDefaultStyleCss() |
org.geotools.geometry.jts.ReferencedEnvelope |
getEnvelope()
Gets the bounding box for the features in this feature collection.
|
org.geotools.feature.DefaultFeatureCollection |
getFeatureCollection() |
org.opengis.feature.simple.SimpleFeatureType |
getFeatureType() |
PlacemarkDescriptor |
getPlacemarkDescriptor() |
PlacemarkGroup |
getPlacemarkGroup() |
long |
getRawStorageSize(ProductSubsetDef subsetDef)
Gets an estimated, raw storage size in bytes of this product node.
|
String |
getStyleCss() |
boolean |
isInternalNode()
Deprecated.
Since BEAM 4.10. No use.
|
boolean |
isPermanent()
Internal API.
|
void |
setDefaultCSS(String defaultCSS)
Deprecated.
since BEAM 4.10, use setDefaultStyleCss()
|
void |
setDefaultStyleCss(String defaultStyleCss) |
void |
setModified(boolean modified)
Sets this node's modified flag.
|
void |
setOwner(ProductNode owner)
Called when this node is added to or removed from a product.
|
void |
setPermanent(boolean permanent)
Internal API.
|
void |
setStyleCss(String styleCss) |
dispose, fireProductNodeChanged, fireProductNodeChanged, getDescription, getDisplayName, getName, getOwner, getProduct, getProductReader, getProductReaderSafe, getProductRefString, getProductSafe, getProductWriter, getProductWriterSafe, getRawStorageSize, isModified, isPartOfSubset, isValidNodeName, removeFromFile, setDescription, setName, toString, updateExpression
getExtension
public static final String PROPERTY_NAME_FEATURE_COLLECTION
public static final String PROPERTY_NAME_STYLE_CSS
public static final String PROPERTY_NAME_DEFAULT_STYLE_CSS
public VectorDataNode(String name, org.opengis.feature.simple.SimpleFeatureType featureType)
name
- The node name.featureType
- The feature type.IllegalArgumentException
- if the given name is not a valid node identifierpublic VectorDataNode(String name, org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> featureCollection)
name
- The node name.featureCollection
- A feature collection. A copy of this collection will be used. This collection instance is not modified.IllegalArgumentException
- if the given name is not a valid node identifierpublic VectorDataNode(String name, org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> featureCollection, PlacemarkDescriptor placemarkDescriptor)
name
- The node name.featureCollection
- A feature collection. A copy of this collection will be used. This collection instance is not modified.placemarkDescriptor
- The placemark descriptorIllegalArgumentException
- if the given name is not a valid node identifierpublic void setOwner(ProductNode owner)
setOwner
in class ProductNode
owner
- the new ownerpublic PlacemarkDescriptor getPlacemarkDescriptor()
public PlacemarkGroup getPlacemarkGroup()
public void setModified(boolean modified)
ProductNode
If the modified flag changes to true and this node has an owner, the owner's modified flag is also set to true.
setModified
in class ProductNode
modified
- whether or not this node is beeing marked as modified.Product.fireNodeChanged(org.esa.snap.core.datamodel.ProductNode, java.lang.String, java.lang.Object, java.lang.Object)
public org.opengis.feature.simple.SimpleFeatureType getFeatureType()
public org.geotools.feature.DefaultFeatureCollection getFeatureCollection()
public org.geotools.geometry.jts.ReferencedEnvelope getEnvelope()
public long getRawStorageSize(ProductSubsetDef subsetDef)
ProductNode
getRawStorageSize
in class ProductNode
subsetDef
- if not null
the subset may limit the size returnedpublic String getDefaultStyleCss()
public void setDefaultStyleCss(String defaultStyleCss)
public String getStyleCss()
public void setStyleCss(String styleCss)
public void acceptVisitor(ProductVisitor visitor)
ProductNode
acceptVisitor
in class ProductNode
visitor
- the visitorpublic boolean isPermanent()
public void setPermanent(boolean permanent)
permanent
- If true, prevents this node from being removed.@Deprecated public boolean isInternalNode()
@Deprecated public String getDefaultCSS()
@Deprecated public void setDefaultCSS(String defaultCSS)
public void fireFeaturesAdded(org.opengis.feature.simple.SimpleFeature... features)
ProductNodeListener
with the Product
containing this VectorDataNode
, that one or more OpenGIS SimpleFeature
s have
been added to the underlying FeatureCollection
.
The method fires a product node property change event, where the propertyName
is PROPERTY_NAME_FEATURE_COLLECTION
, the oldValue
is null
, and
the newValue
is the array of features added.
features
- The feature(s) added.public void fireFeaturesRemoved(org.opengis.feature.simple.SimpleFeature... features)
ProductNodeListener
with the Product
containing this VectorDataNode
, that one or more OpenGIS SimpleFeature
s have
been removed from the underlying FeatureCollection
.
The method fires a product node property change event, where the propertyName
is PROPERTY_NAME_FEATURE_COLLECTION
, the oldValue
is the array of features
removed, and the newValue
is null
.
features
- The feature(s) removed.public void fireFeaturesChanged(org.opengis.feature.simple.SimpleFeature... features)
ProductNodeListener
with the Product
containing this VectorDataNode
, that one or more OpenGIS SimpleFeature
s from
from the underlying FeatureCollection
have been changed.
The method fires a product node property change event, where the propertyName
is PROPERTY_NAME_FEATURE_COLLECTION
, and both oldValue
and newValue
are the same array of features changed.
features
- The feature(s) changed.Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.