MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgByteReader* MgFeatureService::GetWfsFeature ( MgResourceIdentifier featureSourceId,
CREFSTRING  featureClass,
MgStringCollection requiredProperties,
CREFSTRING  srs,
CREFSTRING  filter,
INT32  maxFeatures,
CREFSTRING  wfsVersion,
CREFSTRING  outputFormat,
CREFSTRING  sortCriteria,
CREFSTRING  namespacePrefix,
CREFSTRING  namespaceUrl 
) [pure virtual]

Retrieves feature information based on the supplied criteria with specified format.

.NET Syntax
virtual MgByteReader GetWfsFeature(MgResourceIdentifier featureSourceId, string featureClass, MgStringCollection requiredProperties, string srs, string filter, int maxFeatures, string wfsVersion, string outputFormat, string sortCriteria, string namespacePrefix, string namespaceUrl);
Java Syntax
virtual MgByteReader GetWfsFeature(MgResourceIdentifier featureSourceId, string featureClass, MgStringCollection requiredProperties, string srs, string filter, int maxFeatures, string wfsVersion, string outputFormat, string sortCriteria, string namespacePrefix, string namespaceUrl);
PHP Syntax
virtual MgByteReader GetWfsFeature(MgResourceIdentifier featureSourceId, string featureClass, MgStringCollection requiredProperties, string srs, string filter, int maxFeatures, string wfsVersion, string outputFormat, string sortCriteria, string namespacePrefix, string namespaceUrl);
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
maxFeatures(int) The maximum number of features to retrieve. If the value is less than or equal to zero, all features will be retrieved.
wfsVersion(String/string) A string identifying the wfs version
outputFormat(String/string) A string identifying the output format of the retrieved feature information. The supported values of output format are specified in OpenGIS Web Feature Service (WFS) Implementation Specification - section 9.2 http://portal.opengeospatial.org/files/?artifact_id=8339
sortCriteria(String/string) A string identifying the sort criteria
namespacePrefix(String/string) A string identifying the namespace prefix in the output xml
namespaceUrl(String/string) A string idenyifying the namespace url in the output xml
Returns:
Returns an MgByteReader containing the requested feature information.
Exceptions:
MgInvalidArgumentException