MapGuide API Reference
|
Gets and sets properties of a layer. More...
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. | |
MgByteReader * | GenerateLegendImage (INT32 width, INT32 height, CREFSTRING format, INT32 geomType, INT32 themeCategory) |
Returns the legend image for the specified geometry type and theme category. | |
MgByteReader * | GenerateLegendImage (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 MgClassDefinition * | GetClassDefinition () |
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. | |
MgIntCollection * | GetGeometryTypeStyles () |
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. | |
MgIntCollection * | GetGeometryTypeStyles (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 MgSpatialContextReader * | GetSpatialContexts (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 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. | |
MgLayer (MgResourceIdentifier *layerDefinition, MgResourceService *resourceService) | |
Creates a MgLayer object from a layer definition. | |
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 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.