Class FLyrVect
- All Implemented Interfaces:
org.gvsig.fmap.dal.HasDataStore,ExtendedPropertiesSupport,FLayer,FLayerHidesArea,LayerListener,Classifiable,ClassifiableVectorial,InfoByPoint,SingleLayer,VectorLayer,Projected,LegendContentsChangedListener,ILabelable,org.gvsig.metadata.Metadata,org.gvsig.tools.dispose.Disposable,org.gvsig.tools.dynobject.DynObject,org.gvsig.tools.observer.Observer,org.gvsig.tools.persistence.Persistent
- Direct Known Subclasses:
DefaultGraphicLayer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classstatic classNested classes/interfaces inherited from class org.gvsig.fmap.mapcontext.layers.FLyrDefault
FLyrDefault.RegisterMetadata, FLyrDefault.RegisterPersistence -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ILabelingStrategystatic final Stringstatic final StringFields inherited from class org.gvsig.fmap.mapcontext.layers.FLyrDefault
drawVersion, layerListeners, metadataContainer, propertiesFields inherited from interface org.gvsig.fmap.mapcontext.layers.FLayer
METADATA_CRS, METADATA_DEFINITION_DESCRIPTION, METADATA_DEFINITION_NAME, METADATA_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBaseFilter(String filter) voidaddBaseFilter(org.gvsig.tools.evaluator.Evaluator filter) booleanReturn true, because a Vectorial Layer supports HyperLinkprotected voidbindToDataStore(org.gvsig.fmap.dal.DataStore dataStore) Enlaza la capa con el DataStore indicado.protected voidvoidThis method can be used to have a fast cloned layer.org.gvsig.fmap.dal.feature.FeatureQueryorg.gvsig.fmap.dal.feature.FeatureQuerycreateQueryByGeometry(org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.FeatureType featureType) org.gvsig.fmap.dal.feature.FeatureQuerycreateQueryByPoint(double x, double y, double tol, org.gvsig.fmap.dal.feature.FeatureType featureType) protected voidvoiddraw(BufferedImage image, Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale) Draws using IFeatureIterator.voiddrawLabels(BufferedImage image, Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, double dpi) Causes the labels to be drawn.static org.gvsig.fmap.geom.GeometryfromViewPortCRSToSourceCRS(FLayer lyr, org.gvsig.fmap.geom.Geometry geo, boolean clone) Returns geometry in layer's data source CRS from geometry provided in viewport CRSstatic org.gvsig.fmap.geom.primitive.EnvelopefromViewPortCRSToSourceCRS(FLayer lyr, org.gvsig.fmap.geom.primitive.Envelope env) Returns envelope in layer's data source CRS from envelope provided in viewport CRSorg.gvsig.fmap.dal.feature.FeatureQueryorg.gvsig.fmap.dal.DataStoreReturn the store associated to the layer.org.gvsig.fmap.dal.DataStoreParametersorg.gvsig.fmap.dal.feature.FeatureStoreorg.gvsig.fmap.geom.primitive.EnvelopeReturns the full extension of the layer node.org.gvsig.fmap.geom.type.GeometryTypeReturns the layer's geometry typeorg.gvsig.tools.dynobject.DynObjectSetExecutes a consultation about information of a point on the layer.org.gvsig.tools.dynobject.DynObjectSetExecutes a consultation about information of a point on the layer.org.gvsig.tools.dynobject.DynObjectSetgetInfo(org.gvsig.fmap.geom.primitive.Point p, double tolerance) Executes a consultation about information of a point on the layer.Returns an string with the information of this layer.Returns the current labeling strategyDevuelve la Leyenda de la capa.org.gvsig.crs.projection.lib.ProjectionReturns the current projection.getProperty(Object key) Returns a reference to an object (property) associated to this layer.intReturns the type of the shape.Returns the image icon that will be shown in the TOC next to this layer.org.gvsig.fmap.geom.type.GeometryTypevoidbooleanReturns if this layer is editable.booleanReturns true if labels are drawn, or false otherwise.booleanbooleanThis method returns a boolean that is used by the FPopMenu to make visible the properties menu or not.booleanbooleanbooleanReturns the writing status of this layer.iterator()voidlegendCleared(LegendClearEvent event) voidload()Executes the initialization operations of this layer.voidloadFromState(org.gvsig.tools.persistence.PersistentState state) voidprint(Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, org.gvsig.compat.print.PrintAttributes properties) Prints this layer according to some properties requested.voidprintLabels(Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, org.gvsig.compat.print.PrintAttributes properties) protected voidprotected voidorg.gvsig.fmap.dal.feature.FeatureSetqueryByContainedInEnvelope(org.gvsig.fmap.geom.primitive.Envelope envelope, org.gvsig.fmap.dal.feature.FeatureType featureType) org.gvsig.fmap.dal.feature.FeatureSetqueryByContainedInEnvelope(org.gvsig.fmap.geom.primitive.Envelope envelope, org.gvsig.fmap.dal.feature.FeatureType featureType, String[] names) org.gvsig.fmap.dal.feature.FeatureSetqueryByContainedInGeometry(org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.FeatureType featureType) org.gvsig.fmap.dal.feature.FeatureSetqueryByEnvelope(org.gvsig.fmap.geom.primitive.Envelope envelope, org.gvsig.fmap.dal.feature.FeatureType featureType) It return theFeatureSetthat intersects with the envelope.org.gvsig.fmap.dal.feature.FeatureSetqueryByEnvelope(org.gvsig.fmap.geom.primitive.Envelope envelope, org.gvsig.fmap.dal.feature.FeatureType featureType, String[] names) It return theFeatureSetthat intersects with the envelope.org.gvsig.fmap.dal.feature.FeatureSetqueryByGeometry(org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.FeatureType featureType) Input geom must be in the CRS of the view.org.gvsig.fmap.dal.feature.FeatureSetqueryByPoint(Point2D mapPoint, double tol, org.gvsig.fmap.dal.feature.FeatureType featureType) org.gvsig.fmap.dal.feature.FeatureSetqueryByPoint(org.gvsig.fmap.geom.primitive.Point point, double tol, org.gvsig.fmap.dal.feature.FeatureType featureType) voidrefreshSpatialCache(org.gvsig.fmap.geom.primitive.Envelope envelope) voidreload()Tries recover a layer of a possible error.voidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidsetBaseQuery(org.gvsig.fmap.dal.feature.FeatureQuery baseQuery) voidsetDataStore(org.gvsig.fmap.dal.DataStore dataStore) Asigna el data-store a la capa.voidsetDataStoreParameters(org.gvsig.fmap.dal.DataStoreParameters parameters) voidsetEditing(boolean b) Do nothing.voidsetIsLabeled(boolean isLabeled) Enables or disables the label drawing.voidsetLabelingStrategy(ILabelingStrategy strategy) Sets the new labeling strategy.voidsetLayerToSnap(boolean enable) voidsetLegend(IVectorLegend legend) Sets the layer's legend as a vector legend.protected voidsetLoadLegend(IVectorLegend legend) protected voidsetLoadSelection(Object xml) voidsetMaxFeaturesInEditionCache(int maxFeatures) Siempre es un numero mayor de 1000voidsetSpatialCacheEnabled(boolean spatialCacheEnabled) voidsetVisible(boolean visibility) Changes the status of this layer to visible or not.booleanInvocado cuando se cambia en el legend el símbolo por defecto.toString()Sobreimplementación del método toString para que las bases de datos identifiquen la capa.org.gvsig.fmap.geom.GeometrytransformToSourceCRS(org.gvsig.fmap.geom.Geometry geom, boolean clone) voidMethods inherited from class org.gvsig.fmap.mapcontext.layers.FLyrDefault
activationChanged, addError, addLayerListener, addLegendListener, callEditionChanged, callLegendChanged, clear, delegate, drawValueChanged, editionChanged, getClassName, getCoordTrans, getDefaultTolerance, getDrawVersion, getDynClass, getDynValue, getError, getErrors, getExtendedProperties, getFLayerStatus, getLayerListeners, getLink, getLinkProperties, getMapContext, getMaxScale, getMetadataName, getMinScale, getName, getNumErrors, getParentLayer, getTocStatusImage, getTransparency, hasChangedForDrawing, hasDynValue, hidesThisArea, implement, invokeDynMethod, invokeDynMethod, isActive, isAvailable, isInTOC, isOk, isVisible, isWithinScale, nameChanged, newComposedLayer, removeLayerListener, removeLegendListener, reProject, setActive, setAvailable, setCoordTrans, setDynValue, setError, setFLayerStatus, setInTOC, setMaxScale, setMinScale, setName, setParentLayer, setProjection, setProperty, setTemporary, setTocStatusImage, setTransparency, updateDrawVersion, updateDrawVersion, visibilityChanged, visibleRequired, wakeUpMethods inherited from class org.gvsig.tools.dispose.impl.AbstractDisposable
dispose, disposeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gvsig.fmap.mapcontext.layers.operations.Classifiable
addLegendListener, removeLegendListenerMethods inherited from interface org.gvsig.tools.dispose.Disposable
disposeMethods inherited from interface org.gvsig.tools.dynobject.DynObject
clear, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValueMethods inherited from interface org.gvsig.fmap.mapcontext.layers.ExtendedPropertiesSupport
getExtendedProperties, setPropertyMethods inherited from interface org.gvsig.fmap.mapcontext.layers.FLayer
addError, addLayerListener, getCoordTrans, getDefaultTolerance, getDrawVersion, getError, getErrors, getFLayerStatus, getLayerListeners, getLink, getLinkProperties, getMapContext, getMaxScale, getMinScale, getName, getNumErrors, getParentLayer, getTocStatusImage, isActive, isAvailable, isInTOC, isOk, isVisible, isWithinScale, newComposedLayer, removeLayerListener, setActive, setAvailable, setCoordTrans, setError, setFLayerStatus, setInTOC, setMaxScale, setMinScale, setName, setParentLayer, setProjection, setTemporary, visibleRequiredMethods inherited from interface org.gvsig.metadata.Metadata
getMetadataName
-
Field Details
-
TAG_LAYERVECT_MAXSCALE
- See Also:
-
TAG_LAYERVECT_MINSCALE
- See Also:
-
strategy
-
-
Constructor Details
-
FLyrVect
public FLyrVect()
-
-
Method Details
-
getTocImageIcon
Description copied from interface:FLayerReturns the image icon that will be shown in the TOC next to this layer.- Specified by:
getTocImageIconin interfaceFLayer- Overrides:
getTocImageIconin classFLyrDefault- Returns:
- a String reference to the image icon, or
nullif there isn't any
-
getDataStore
public org.gvsig.fmap.dal.DataStore getDataStore()Return the store associated to the layer.- Specified by:
getDataStorein interfaceorg.gvsig.fmap.dal.HasDataStore- Specified by:
getDataStorein interfaceSingleLayer- Returns:
- the store
-
setDataStore
Asigna el data-store a la capa. Esta operacion no se deneria poder hacer desde fuera de la clase.- Specified by:
setDataStorein interfaceSingleLayer- Parameters:
dataStore-- Throws:
LoadLayerException
-
setDataStoreParameters
public void setDataStoreParameters(org.gvsig.fmap.dal.DataStoreParameters parameters) -
setVisible
public void setVisible(boolean visibility) Description copied from interface:FLayerChanges the status of this layer to visible or not.
One layer is visible if it's check box associated is selected. This means that layer will tried to be painted. If the data associated isn't available, then this property will change to
false.- Specified by:
setVisiblein interfaceFLayer- Overrides:
setVisiblein classFLyrDefault- Parameters:
visibility- the boolean to be set- See Also:
-
bindToDataStore
Enlaza la capa con el DataStore indicado.- Parameters:
dataStore-- Throws:
LoadLayerException
-
getFullEnvelope
public org.gvsig.fmap.geom.primitive.Envelope getFullEnvelope() throws org.gvsig.fmap.dal.exception.ReadExceptionDescription copied from interface:FLayerReturns the full extension of the layer node.- Specified by:
getFullEnvelopein interfaceFLayer- Returns:
- location and dimension of this layer node
- Throws:
org.gvsig.fmap.dal.exception.ReadException- if fails the driver used in this method.
-
setBaseQuery
public void setBaseQuery(org.gvsig.fmap.dal.feature.FeatureQuery baseQuery) - Specified by:
setBaseQueryin interfaceVectorLayer
-
getBaseQuery
public org.gvsig.fmap.dal.feature.FeatureQuery getBaseQuery()- Specified by:
getBaseQueryin interfaceVectorLayer
-
addBaseFilter
public void addBaseFilter(org.gvsig.tools.evaluator.Evaluator filter) - Specified by:
addBaseFilterin interfaceVectorLayer
-
addBaseFilter
- Specified by:
addBaseFilterin interfaceVectorLayer
-
draw
public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale) throws org.gvsig.fmap.dal.exception.ReadException Draws using IFeatureIterator. This method will replace the old draw(...) one. -
print
public void print(Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, org.gvsig.compat.print.PrintAttributes properties) throws org.gvsig.fmap.dal.exception.ReadException Description copied from interface:FLayerPrints this layer according to some properties requested.- Specified by:
printin interfaceFLayer- Parameters:
g- for rendering 2-dimensional shapes, text and images on the Java(tm) platformviewPort- the information for drawing the layerscancel- an object thread that implements theCancellableinterface, and will allow to cancel the drawscale- the scale of the view. Must be between FLayer.getMinScale() and FLayer.getMaxScale().properties- a set with the settings to be applied to a whole print job and to all the docs in the print job- Throws:
org.gvsig.fmap.dal.exception.ReadException- if fails the driver used in this method.- See Also:
-
setLegend
Description copied from interface:ClassifiableVectorialSets the layer's legend as a vector legend.
- Specified by:
setLegendin interfaceClassifiableVectorial- Parameters:
legend- the legend with vector data- Throws:
LegendLayerException- if fails setting the legend to this layer.
-
getLegend
Devuelve la Leyenda de la capa.- Specified by:
getLegendin interfaceClassifiable- Returns:
- Leyenda.
-
getShapeType
public int getShapeType() throws org.gvsig.fmap.dal.exception.ReadExceptionDescription copied from interface:ClassifiableReturns the type of the shape.
All geometry types are defined in
Geometry.TYPES. For getting the equivalent shape of a geometry type, you must use a method like.invalid reference
SHPFileWrite#getShapeType()
- Specified by:
getShapeTypein interfaceClassifiable- Returns:
- the type of this shape.
- Throws:
org.gvsig.fmap.dal.exception.ReadException- See Also:
-
getGeometryType
public org.gvsig.fmap.geom.type.GeometryType getGeometryType() throws org.gvsig.fmap.dal.exception.ReadExceptionReturns the layer's geometry type- Specified by:
getGeometryTypein interfaceClassifiable- Returns:
- the geometry type
- Throws:
org.gvsig.fmap.dal.exception.ReadException- if there is an error getting the geometry type
-
saveToState
public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
saveToStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
saveToStatein classFLyrDefault- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
loadFromState
public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
loadFromStatein interfaceorg.gvsig.tools.persistence.Persistent- Overrides:
loadFromStatein classFLyrDefault- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
toString
Sobreimplementación del método toString para que las bases de datos identifiquen la capa.- Overrides:
toStringin classFLyrDefault- Returns:
- DOCUMENT ME!
-
isEditing
public boolean isEditing()Description copied from interface:FLayerReturns if this layer is editable.
One layer is editable if user can modify its information with graphical tools.
- Specified by:
isEditingin interfaceFLayer- Overrides:
isEditingin classFLyrDefault- Returns:
trueif this layer is editable;falseotherwise- See Also:
-
setEditing
Description copied from interface:FLayerDo nothing.- Specified by:
setEditingin interfaceFLayer- Overrides:
setEditingin classFLyrDefault- Parameters:
b-- Throws:
StartEditionLayerException
-
clearSpatialCache
public void clearSpatialCache() -
isSpatialCacheEnabled
public boolean isSpatialCacheEnabled() -
setSpatialCacheEnabled
public void setSpatialCacheEnabled(boolean spatialCacheEnabled) -
getSpatialCache
-
refreshSpatialCache
public void refreshSpatialCache(org.gvsig.fmap.geom.primitive.Envelope envelope) -
setMaxFeaturesInEditionCache
public void setMaxFeaturesInEditionCache(int maxFeatures) Siempre es un numero mayor de 1000- Parameters:
maxFeatures-
-
isPropertiesMenuVisible
public boolean isPropertiesMenuVisible()This method returns a boolean that is used by the FPopMenu to make visible the properties menu or not. It is visible by default, and if a later don't have to show this menu only has to override this method.- Returns:
- If the properties menu is visible (or not)
-
reload
Description copied from interface:FLayerTries recover a layer of a possible error.
If it has any problem during the load, marks the availability to false and throws an exception.
- Specified by:
reloadin interfaceFLayer- Overrides:
reloadin classFLyrDefault- Throws:
ReloadLayerException- if it's thrown aReadExceptionor anIOExceptionduring the load of this layer.- See Also:
-
setLoadSelection
-
setLoadLegend
-
putLoadSelection
protected void putLoadSelection() -
putLoadLegend
- Throws:
LegendLayerException
-
cleanLoadOptions
protected void cleanLoadOptions() -
isWritable
public boolean isWritable()Description copied from interface:FLayerReturns the writing status of this layer.
One layer is writable if there is a writing driver for this layer.
- Specified by:
isWritablein interfaceFLayer- Overrides:
isWritablein classFLyrDefault- Returns:
trueif there is a writing driver for this layer;falseotherwise
-
cloneLayer
Description copied from interface:FLayerThis method can be used to have a fast cloned layer.
The implementations should take care of not recreate this layer. Instead of this, is better to use the same source (driver) and deepclone the legend. Exception: the labels aren't deepcloned to avoid memory consumption.
Note: Labels are memory consuming to speed up layers like PostGIS and so on.
- Specified by:
cloneLayerin interfaceFLayer- Overrides:
cloneLayerin classFLyrDefault- Returns:
- a layer that is a clonation of this layer
- Throws:
Exception- any exception produced during the cloning of this layer.
-
isLabeled
public boolean isLabeled()Description copied from interface:ILabelableReturns true if labels are drawn, or false otherwise.- Specified by:
isLabeledin interfaceILabelable- Returns:
- boolean telling if labels are drawn
-
setIsLabeled
public void setIsLabeled(boolean isLabeled) Description copied from interface:ILabelableEnables or disables the label drawing.- Specified by:
setIsLabeledin interfaceILabelable- Parameters:
isLabeled- , if true then labels will be drawn
-
getLabelingStrategy
Description copied from interface:ILabelableReturns the current labeling strategy- Specified by:
getLabelingStrategyin interfaceILabelable- Returns:
- ILabelingStrategy
- See Also:
-
setLabelingStrategy
Description copied from interface:ILabelableSets the new labeling strategy. Changes on the results will take effect next time the drawLabels(...) method is invoked.- Specified by:
setLabelingStrategyin interfaceILabelable- Parameters:
strategy-
-
drawLabels
public void drawLabels(BufferedImage image, Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, double dpi) throws org.gvsig.fmap.dal.exception.ReadException Description copied from interface:ILabelableCauses the labels to be drawn. The policy of process is determined by the LabelingStrategy previously set.- Specified by:
drawLabelsin interfaceILabelable- Parameters:
image-g-viewPort-cancel-scale-dpi-- Throws:
org.gvsig.fmap.dal.exception.ReadException
-
printLabels
public void printLabels(Graphics2D g, ViewPort viewPort, org.gvsig.tools.task.Cancellable cancel, double scale, org.gvsig.compat.print.PrintAttributes properties) throws org.gvsig.fmap.dal.exception.ReadException - Specified by:
printLabelsin interfaceILabelable- Throws:
org.gvsig.fmap.dal.exception.ReadException
-
allowLinks
public boolean allowLinks()Return true, because a Vectorial Layer supports HyperLink- Specified by:
allowLinksin interfaceFLayer- Overrides:
allowLinksin classFLyrDefault- Returns:
- false
-
load
Description copied from interface:FLayerExecutes the initialization operations of this layer. This method is invoked only one time during the life of this layer and just before visualize it.
- Specified by:
loadin interfaceFLayer- Overrides:
loadin classFLyrDefault- Throws:
LoadLayerException- if fails loading the layer.- See Also:
-
getFeatureStore
public org.gvsig.fmap.dal.feature.FeatureStore getFeatureStore()- Specified by:
getFeatureStorein interfaceVectorLayer
-
createFeatureQuery
public org.gvsig.fmap.dal.feature.FeatureQuery createFeatureQuery()- Specified by:
createFeatureQueryin interfaceVectorLayer
-
queryByPoint
public org.gvsig.fmap.dal.feature.FeatureSet queryByPoint(Point2D mapPoint, double tol, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException - Throws:
org.gvsig.fmap.dal.exception.DataException
-
queryByPoint
public org.gvsig.fmap.dal.feature.FeatureSet queryByPoint(org.gvsig.fmap.geom.primitive.Point point, double tol, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException - Throws:
org.gvsig.fmap.dal.exception.DataException
-
createQueryByPoint
public org.gvsig.fmap.dal.feature.FeatureQuery createQueryByPoint(double x, double y, double tol, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException - Throws:
org.gvsig.fmap.dal.exception.DataException
-
queryByGeometry
public org.gvsig.fmap.dal.feature.FeatureSet queryByGeometry(org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException Input geom must be in the CRS of the view.- Parameters:
geom-featureType-- Returns:
- Throws:
org.gvsig.fmap.dal.exception.DataException
-
createQueryByGeometry
public org.gvsig.fmap.dal.feature.FeatureQuery createQueryByGeometry(org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException - Throws:
org.gvsig.fmap.dal.exception.DataException
-
queryByContainedInGeometry
public org.gvsig.fmap.dal.feature.FeatureSet queryByContainedInGeometry(org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException - Throws:
org.gvsig.fmap.dal.exception.DataException
-
queryByEnvelope
public org.gvsig.fmap.dal.feature.FeatureSet queryByEnvelope(org.gvsig.fmap.geom.primitive.Envelope envelope, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException It return theFeatureSetthat intersects with the envelope.- Parameters:
envelope- envelope that defines the area for the query.featureType- only the features with this feature type are used in the query.- Returns:
- the set of features that intersect with the envelope.
- Throws:
org.gvsig.fmap.dal.exception.DataException
-
queryByEnvelope
public org.gvsig.fmap.dal.feature.FeatureSet queryByEnvelope(org.gvsig.fmap.geom.primitive.Envelope envelope, org.gvsig.fmap.dal.feature.FeatureType featureType, String[] names) throws org.gvsig.fmap.dal.exception.DataException It return theFeatureSetthat intersects with the envelope.- Parameters:
envelope- envelope that defines the area for the query in viewport CRSfeatureType- only the features with this feature type are used in the query.names- the feature attributes that have to be checked.- Returns:
- the set of features that intersect with the envelope.
- Throws:
org.gvsig.fmap.dal.exception.DataException
-
queryByContainedInEnvelope
public org.gvsig.fmap.dal.feature.FeatureSet queryByContainedInEnvelope(org.gvsig.fmap.geom.primitive.Envelope envelope, org.gvsig.fmap.dal.feature.FeatureType featureType) throws org.gvsig.fmap.dal.exception.DataException - Throws:
org.gvsig.fmap.dal.exception.DataException
-
queryByContainedInEnvelope
public org.gvsig.fmap.dal.feature.FeatureSet queryByContainedInEnvelope(org.gvsig.fmap.geom.primitive.Envelope envelope, org.gvsig.fmap.dal.feature.FeatureType featureType, String[] names) throws org.gvsig.fmap.dal.exception.DataException - Throws:
org.gvsig.fmap.dal.exception.DataException
-
getInfo
public org.gvsig.tools.dynobject.DynObjectSet getInfo(Point p, double tolerance, org.gvsig.tools.task.Cancellable cancel) throws LoadLayerException, org.gvsig.fmap.dal.exception.DataException Description copied from interface:InfoByPointExecutes a consultation about information of a point on the layer.
There is an area around the point where will got the information.
- Specified by:
getInfoin interfaceInfoByPoint- Parameters:
p- point where is the consultationtolerance- permissible margin around the coordinates of the point where the method will got the information. Each singular implementation of this method would use it in a different way. The coordinates also depend on the implementation.cancel- shared object that determines if this layer can continue being drawn- Returns:
- a DynObjectSet. If the InfoByPoint Object is a vector layer it should return a FeatureSet.
- Throws:
LoadLayerException- any exception produced using the driver.org.gvsig.fmap.dal.exception.DataException- TODO
-
getInfo
public org.gvsig.tools.dynobject.DynObjectSet getInfo(Point p, double tolerance, org.gvsig.tools.task.Cancellable cancel, boolean fast) throws LoadLayerException, org.gvsig.fmap.dal.exception.DataException Description copied from interface:InfoByPointExecutes a consultation about information of a point on the layer.
There is an area around the point where will got the information.
- Specified by:
getInfoin interfaceInfoByPoint- Parameters:
p- point where is the consultationtolerance- permissible margin around the coordinates of the point where the method will got the information. Each singular implementation of this method would use it in a different way. The coordinates also depend on the implementation.cancel- shared object that determines if this layer can continue being drawnfast- if true try to reuse objects as much as possible to make the object iteration faster. If true, DynObjects got through the returned set must not be stored unless cloned.- Returns:
- a DynObjectSet. If the InfoByPoint Object is a vector layer it should return a FeatureSet.
- Throws:
LoadLayerException- any exception produced using the driver.org.gvsig.fmap.dal.exception.DataException- TODO
-
getInfo
public org.gvsig.tools.dynobject.DynObjectSet getInfo(org.gvsig.fmap.geom.primitive.Point p, double tolerance) throws LoadLayerException, org.gvsig.fmap.dal.exception.DataException Description copied from interface:InfoByPointExecutes a consultation about information of a point on the layer.
There is an area around the point where will got the information.
- Specified by:
getInfoin interfaceInfoByPoint- Parameters:
p- point in map coordinates where is the consultationtolerance- permissible margin around the coordinates of the point where the method will got the information. Each singular implementation of this method would use it in a different way. The unit are in map coordinates.- Throws:
LoadLayerExceptionorg.gvsig.fmap.dal.exception.DataException
-
legendCleared
- Specified by:
legendClearedin interfaceLegendContentsChangedListener
-
symbolChanged
Description copied from interface:LegendContentsChangedListenerInvocado cuando se cambia en el legend el símbolo por defecto. Si cualquiera de los listeners devuelve false, el cambio no se realiza- Specified by:
symbolChangedin interfaceLegendContentsChangedListener- Parameters:
e- SymbolLegendEvent- Returns:
- True si ha sido correcto.
-
update
- Specified by:
updatein interfaceorg.gvsig.tools.observer.Observer
-
setLayerToSnap
public void setLayerToSnap(boolean enable) -
isLayerToSnap
public boolean isLayerToSnap() -
getMetadataChildren
- Specified by:
getMetadataChildrenin interfaceorg.gvsig.metadata.Metadata
-
getMetadataID
- Specified by:
getMetadataIDin interfaceorg.gvsig.metadata.Metadata- Throws:
org.gvsig.metadata.exceptions.MetadataException
-
getTypeVectorLayer
public org.gvsig.fmap.geom.type.GeometryType getTypeVectorLayer() throws org.gvsig.fmap.dal.exception.DataException, org.gvsig.tools.locator.LocatorException, org.gvsig.fmap.geom.type.GeometryTypeNotSupportedException, org.gvsig.fmap.geom.type.GeometryTypeNotValidException- Throws:
org.gvsig.fmap.dal.exception.DataExceptionorg.gvsig.tools.locator.LocatorExceptionorg.gvsig.fmap.geom.type.GeometryTypeNotSupportedExceptionorg.gvsig.fmap.geom.type.GeometryTypeNotValidException
-
doDispose
protected void doDispose() throws org.gvsig.tools.exception.BaseException- Specified by:
doDisposein classorg.gvsig.tools.dispose.impl.AbstractDisposable- Throws:
org.gvsig.tools.exception.BaseException
-
fromViewPortCRSToSourceCRS
public static org.gvsig.fmap.geom.primitive.Envelope fromViewPortCRSToSourceCRS(FLayer lyr, org.gvsig.fmap.geom.primitive.Envelope env) Returns envelope in layer's data source CRS from envelope provided in viewport CRS- Parameters:
lyr-env-- Returns:
-
transformToSourceCRS
public org.gvsig.fmap.geom.Geometry transformToSourceCRS(org.gvsig.fmap.geom.Geometry geom, boolean clone) -
fromViewPortCRSToSourceCRS
public static org.gvsig.fmap.geom.Geometry fromViewPortCRSToSourceCRS(FLayer lyr, org.gvsig.fmap.geom.Geometry geo, boolean clone) Returns geometry in layer's data source CRS from geometry provided in viewport CRS- Parameters:
lyr-geo-clone-- Returns:
-
iterator
-
getInfoString
Description copied from interface:FLayerReturns an string with the information of this layer.- Specified by:
getInfoStringin interfaceFLayer- Overrides:
getInfoStringin classFLyrDefault- Returns:
- the string that is to be this component's information
-
isTemporary
public boolean isTemporary()- Specified by:
isTemporaryin interfaceFLayer- Overrides:
isTemporaryin classFLyrDefault
-
getDataStoreParameters
public org.gvsig.fmap.dal.DataStoreParameters getDataStoreParameters() -
getProjection
public org.gvsig.crs.projection.lib.Projection getProjection()Description copied from interface:ProjectedReturns the current projection.
- Specified by:
getProjectionin interfaceProjected- Overrides:
getProjectionin classFLyrDefault- Returns:
- current projection
- See Also:
-
invalidate
public void invalidate()- Specified by:
invalidatein interfaceFLayer- Overrides:
invalidatein classFLyrDefault
-
getProperty
Description copied from interface:ExtendedPropertiesSupportReturns a reference to an object (property) associated to this layer.
For example, you can attach a network definition to key "network" and check if a layer has a network loaded using getAssociatedObject("network") and that it's not null.
- Specified by:
getPropertyin interfaceExtendedPropertiesSupport- Overrides:
getPropertyin classFLyrDefault- Parameters:
key- the key associated to the property- Returns:
nullif key is not found- See Also:
-