Pitney Bowes MapXtreme User Manual
Page 401

Chapter 22: Web Feature Service
Using the MapXtreme WFS Client Programmatically
MapXtreme v7.1
408
Developer Guide
MapInfo.Wfs.Client.IFilter filter = new
MapInfo.Wfs.Client.PropertyIsGreaterThanOrEqualTo(
new MapInfo.Wfs.Client.PropertyName(wfsUrl, "CAP_POP"),
new MapInfo.Wfs.Client.Literal("1000000"));
/// Create the Query container
///
IList queries = new MapInfo.Wfs.Client.Query[] {
new MapInfo.Wfs.Client.Query(new
MapInfo.Wfs.Client.TypeName("http://www.mapinfo.com/wfs", "WorldCap"),
null, filter)
};
/// Run the filter and return the subset.
///
mfc = MapInfo.Wfs.Client.WfsClient.GetFeature(
wfsUrl,
queries,
"GML3",
-1);
DisplayFeatureCollection(mfc[0]);
}
The output of the above GetCapabilities code is:
FeatureType: miwfs:Ocean
FeatureType: miwfs:WldCty25
FeatureType: miwfs:World
FeatureType: miwfs:WorldCap
The first GetFeature call returns all the features (rows) in WorldCap, a portion of which is shown
below. The first line shows the columns for the WorldCap data, the remaining lines show the
individual rows of data.
Obj, Capital, Country, Cap_Pop, MI_Style,
Point,Abidjan,IVORY COAST,2700000,MapInfo.Styles.SimpleVectorPointStyle:
12 point,
Point,Abu Dhabi,UNITED ARAB
EMIRATES,722000,MapInfo.Styles.SimpleVectorPointStyle: 12 point,
Point,Accra,GHANA,949000,MapInfo.Styles.SimpleVectorPointStyle: 12 point,
Point,Addis Ababa,ETHIOPIA,1423111,MapInfo.Styles.SimpleVectorPointStyle:
12 point,
Point,Agana,GUAM,132726,MapInfo.Styles.SimpleVectorPointStyle: 12 point,
Point,Algiers,ALGERIA,1483000,MapInfo.Styles.SimpleVectorPointStyle: 12
point,
Point,Alma-ata,KAZAKHSTAN,1108000,MapInfo.Styles.SimpleVectorPointStyle:
12 point,
Point,Alofi,NIUE,3300,MapInfo.Styles.SimpleVectorPointStyle: 12 point,
Point,Amman,JORDAN,936000,MapInfo.Styles.SimpleVectorPointStyle: 12
point,
Point,Amsterdam,NETHERLANDS,694656,MapInfo.Styles.SimpleVectorPointStyle:
12 point,
...