MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgFeatureReader* MgFeatureService::GetWfsReader ( MgResourceIdentifier featureSourceId,
CREFSTRING  featureClass,
MgStringCollection requiredProperties,
CREFSTRING  srs,
CREFSTRING  filter,
CREFSTRING  sortCriteria 
) [pure virtual]

Retrieves feature information based on the supplied criteria.

.NET Syntax
virtual MgFeatureReader GetWfsReader(MgResourceIdentifier featureSourceId, string featureClass, MgStringCollection requiredProperties, string srs, string filter, string sortCriteria);
Java Syntax
virtual MgFeatureReader GetWfsReader(MgResourceIdentifier featureSourceId, string featureClass, MgStringCollection requiredProperties, string srs, string filter, string sortCriteria);
PHP Syntax
virtual MgFeatureReader GetWfsReader(MgResourceIdentifier featureSourceId, string featureClass, MgStringCollection requiredProperties, string srs, string filter, string sortCriteria);
Parameters:
featureSourceId(MgResourceIdentifier) The resource identifier defining the location of the feature source in the repository.
featureClass(String/string) The feature class containing the features to retrieve.
requiredProperties(MgStringCollection) The collection of properties to retrieve for each feature. If the collection is null or empty, all properties will be retrieved.
srs(String/string) The spatial reference system in which to return feature geometries
filter(String/string) An XML string containing the definition for an OGC filter
sortCriteria(String/string) A string identifying the sort criteria
Remarks:
The purpose of this method, as opposed to GetWfsFeature is to return the base reader using the same input parameters allowing for the caller to determine the desired output format and the desired content transformations required from the reader.

The main use case for this method is for providing the base feature reader for outputting WFS GetFeature responses in formats other than GML

Returns:
Returns an MgByteReader containing the requested feature information.
Exceptions:
MgInvalidArgumentException
Since:
4.0