Wfs client CF

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

 Hi,

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

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

Hi ladome1, you may get a headstart from http://sharpmap.codeplex.com/SourceControl/PatchList.aspx no: #1226 hth jd

Apr 16, 2014 at 1: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?
Coordinator
Apr 24, 2014 at 9:39 AM
You want to use it for the compact framework? That is probably bound to fail.
Otherwise, please show us some code.
Apr 29, 2014 at 12:24 AM
Edited Apr 29, 2014 at 12:25 AM
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);