Wfs client CF

Topics: CompactFramework, Italiano, SharpMap v0.9 / v1.x
Jun 29, 2009 at 11:57 AM
Edited Jun 29, 2009 at 12:05 PM


Can i create a wfs client with sharpmapcf for pda?

I have to receive from mapserver specific layer in shapefile format...If not, how can do this?

thank you

Jun 29, 2009 at 12:12 PM
Edited Jun 29, 2009 at 12:12 PM

Hi ladome1, you may get a headstart from no: #1226 hth jd

Apr 16, 2014 at 12:12 AM
I have also been trying to use the WFS class as a client, but without success.

Unfortunately, the workitem in the link is no longer available. Is there any other guidance as to how to do this?
Apr 24, 2014 at 8:39 AM
You want to use it for the compact framework? That is probably bound to fail.
Otherwise, please show us some code.
Apr 28, 2014 at 11:24 PM
Edited Apr 28, 2014 at 11:25 PM
No, I was interested in using the WFS class just as a stand-alone WFS client using the main .NET framework. (I don't have a pressing need now as I just ended up implementing one using xml and httpRequest.)

The code I was using was

GeoAPI.GeometryServiceProvider.Instance = new NetTopologySuite.NtsGeometryServices();

string serviceURI = "http://<server>:8080/geoserver/wfs"; WfsFeatureTypeInfo featureTypeInfo = new WfsFeatureTypeInfo(serviceURI, "<nameSpace>", null, "<layerName>", "geom"); WFS prov2 = new WFS(featureTypeInfo, WFS.WFSVersionEnum.WFS1_1_0);

IFilter filter1 = new PropertyIsEqualToFilter_FE1_1_0("version", "Candidate");

prov2.OGCFilter = filter1;

prov2.QuickGeometries = true;;

SharpMap.Data.FeatureDataSet ds = new SharpMap.Data.FeatureDataSet();

prov2.ExecuteIntersectionQuery(new GeoAPI.Geometries.Envelope(0, 360, 0, 180), ds);