MapGuide API Reference
|
Gets and sets properties of a layer. More...
Classes | |
struct | IdProperty |
Public Member Functions | |
virtual MgTransaction * | BeginTransaction () |
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 MgClassDefinition * | GetClassDefinition () |
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 MgLayerGroup * | GetGroup () |
virtual MgResourceIdentifier * | GetLayerDefinition () |
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 MgSpatialContextReader * | GetSpatialContexts (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 MgFeatureReader * | InsertFeatures (MgPropertyCollection *properties, MgTransaction *transaction) |
Inserts a new feature into the specified feature class of the specified Feature Source. | |
virtual MgFeatureReader * | InsertFeatures (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 MgDataReader * | SelectAggregate (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 MgFeatureReader * | SelectFeatures (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 MgFeatureReader * | SelectFeatures (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 MgPropertyCollection * | UpdateFeatures (MgFeatureCommandCollection *commands) |
Executes the MgDeleteFeatures, MgInsertFeatures, MgUpdateFeatures, MgLockFeatures or MgUnlockFeatures commands contained in the given MgFeatureCommandCollection object. | |
virtual MgPropertyCollection * | UpdateFeatures (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. |
Gets and sets properties of a layer.