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

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

+ Inheritance diagram for MgLayer:

List of all members.

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.
MgByteReaderGenerateLegendImage (INT32 width, INT32 height, CREFSTRING format, INT32 geomType, INT32 themeCategory)
 Returns the legend image for the specified geometry type and theme category.
MgByteReaderGenerateLegendImage (double scale, INT32 width, INT32 height, CREFSTRING format, INT32 geomType, INT32 themeCategory)
 Returns the legend image for the specified geometry type and theme category.
virtual MgClassDefinitionGetClassDefinition ()
 Gets the class definition for the feature class of the layer. If the feature class of the layer is extended with properties from other feature classes, then all those properties are also contained in the returned class definition. See Feature Schema .
INT32 GetCompositeThemeCategoryCount (INT32 compositeOffset)
 Gets the number of composite theme categories for this layer at the map's current scale for the given composite style. A count greater than 1 indicates a themed layer. Returns -1 if there are no applicable styles at the current scale.
INT32 GetCompositeThemeCategoryCount (double scale, INT32 compositeOffset)
 Gets the number of composite theme categories for this layer at the map's current scale for the given composite style. A count greater than 1 indicates a themed layer. Returns -1 if there are no applicable styles at the current scale.
MgIntCollectionGetGeometryTypeStyles ()
 Gets the list of geometry type styles for this layer at the map's current scale. Returns NULL if there are no applicable geometry types.
MgIntCollectionGetGeometryTypeStyles (double scale)
 Gets the list of geometry type styles for this layer at the map's current scale. Returns NULL if there are no applicable geometry types.
virtual MgSpatialContextReaderGetSpatialContexts (bool bActiveOnly)
 Gets all of the spatial contexts available in the layer or just the active one.
INT32 GetThemeCategoryCount (INT32 geomType)
 Gets the number of theme categories for this layer at the map's current scale for the given geometry type style. A count greater than 1 indicates a themed layer. Returns -1 if there are no applicable styles at the current scale.
INT32 GetThemeCategoryCount (double scale, INT32 geomType)
 Gets the number of theme categories for this layer at the map's current scale for the given geometry type style. A count greater than 1 indicates a themed layer. Returns -1 if there are no applicable styles at the current scale.
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.
 MgLayer (MgResourceIdentifier *layerDefinition, MgResourceService *resourceService)
 Creates a MgLayer object from a layer definition.
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 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.