MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
MgLayerBase Class Reference

Gets and sets properties of a layer. More...

+ Inheritance diagram for MgLayerBase:

List of all members.

Classes

struct  IdProperty

Public Member Functions

virtual MgTransactionBeginTransaction ()
 Starts a transaction on the this layer. The FDO provider indicated by the layer's Feature Source must support transactions.
virtual INT32 DeleteFeatures (CREFSTRING filter, MgTransaction *transaction)
 Deletes all features that match the given filter.
virtual void ForceRefresh ()
 Forces the data for this layer to be refreshed during the next map update.
virtual MgClassDefinitionGetClassDefinition ()
 
virtual bool GetDisplayInLegend ()
 Determines whether an entry for the layer should appear in the legend.
virtual bool GetExpandInLegend ()
 Determines whether the entry for the layer should initially be expanded in the legend, if possible.
virtual STRING GetFeatureClassName ()
 
virtual STRING GetFeatureGeometryName ()
 
virtual STRING GetFeatureSourceId ()
 Gets the feature source associated with this layer.
virtual STRING GetFilter ()
 
virtual MgLayerGroupGetGroup ()
 
virtual MgResourceIdentifierGetLayerDefinition ()
 Gets the layer's definition.
virtual INT32 GetLayerType ()
 Gets the type of the layer.
virtual STRING GetLegendLabel ()
 
virtual STRING GetName ()
 Gets the name of the layer.
virtual STRING GetObjectId ()
 Gets a unique identifier for this layer.
virtual bool GetSelectable ()
 Determines whether features on the layer are selectable.
virtual MgSpatialContextReaderGetSpatialContexts (bool bActiveOnly)
 Gets all of the spatial contexts available in the layer or just the active one.
virtual bool GetVisible ()
 Determines whether the layer is potentially visible.
virtual MgFeatureReaderInsertFeatures (MgPropertyCollection *properties, MgTransaction *transaction)
 Inserts a new feature into the specified feature class of the specified Feature Source.
virtual MgFeatureReaderInsertFeatures (MgBatchPropertyCollection *properties, MgTransaction *transaction)
 Inserts a set of new features into the specified feature class of the specified Feature Source.
virtual bool IsVisible ()
 Returns the actual visibility of the layer.
 MgLayerBase (MgResourceIdentifier *layerDefinition, MgResourceService *resourceService)
 Creates an MgLayerBase object from a layer definition.
virtual bool NeedsRefresh ()
 Determines whether the data for this layer will be refreshed during the next map update.
virtual MgDataReaderSelectAggregate (MgFeatureAggregateOptions *options)
 Selects groups of features from a feature source and applies filters to each of the groups according to the criteria set in the MgFeatureAggregateOptions argument. If you want to apply the criteria to all features without grouping them, use the MgFeatureService::SelectFeatures Method . See Filters and expressions .
virtual MgFeatureReaderSelectFeatures (MgFeatureQueryOptions *options)
 Selects features from a feature source according to the criteria set in the MgFeatureQueryOptions argument The criteria are applied to all of the features in the feature source. If you want to apply the criteria to a subset of the features, use the MgFeatureService::SelectAggregate Method . See Filters and expressions .
virtual MgFeatureReaderSelectFeatures (MgFeatureQueryOptions *options, CREFSTRING coordinateSystem)
 Selects features from a feature source according to the criteria set in the MgFeatureQueryOptions argument The criteria are applied to all of the features in the feature source. If you want to apply the criteria to a subset of the features, use the MgFeatureService::SelectAggregate Method . See Filters and expressions .
virtual void SetDisplayInLegend (bool displayInLegend)
 
virtual void SetGroup (MgLayerGroup *group)
 
virtual void SetLayerDefinition (MgResourceIdentifier *layerDefinition, MgResourceService *resourceService)
 
virtual void SetLegendLabel (CREFSTRING legendLabel)
 
virtual void SetName (CREFSTRING name)
 
virtual void SetSelectable (bool selectable)
 
virtual void SetVisible (bool visible)
 
virtual MgPropertyCollectionUpdateFeatures (MgFeatureCommandCollection *commands)
 Executes the MgDeleteFeatures, MgInsertFeatures, MgUpdateFeatures, MgLockFeatures or MgUnlockFeatures commands contained in the given MgFeatureCommandCollection object.
virtual MgPropertyCollectionUpdateFeatures (MgFeatureCommandCollection *commands, MgTransaction *transaction)
 Executes the MgDeleteFeatures, MgInsertFeatures, MgUpdateFeatures, MgLockFeatures or MgUnlockFeatures commands contained in the given MgFeatureCommandCollection object.
virtual INT32 UpdateMatchingFeatures (MgPropertyCollection *properties, CREFSTRING filter, MgTransaction *transaction)
 Updates all features that match the given filter with the specified property values.

Detailed Description

Gets and sets properties of a layer.