This project has moved. For the latest updates, please go here.

SharpMap WFS

Topics: SharpMap v0.9 / v1.x, Web Controls
Jun 6, 2013 at 10:49 PM
Is SharpMap capable of serving WFS?
Is there any sample code with OpenLayers?
Jun 7, 2013 at 6:54 AM
I'm afraid not
Jun 7, 2013 at 1:00 PM
What about WMS server GeoJson support?
I'm using OpenLayers as client and SharpMap as WMS server.
It works fine showing WMS layer from SharpMap in OpenLayers and getting feature info with WMSGetFeatureInfo.

This is what I'm trying to accomplish:
  • Implement a search functionality in OpenLayers, to find SharpMap's WMS features based on search criteria.
    I need to search for all WMS layer features, not just for the clicked point.
  • Also I need to get the WMS feature's geometry to create a VectorLayer in OpenLayers, to flash and zoom to the feature.
Is it possible to do?

Jun 10, 2013 at 7:18 AM
Edited Jun 10, 2013 at 7:20 AM
What about WMS server GeoJson support?
Take a look at sharpmap code and the SharpMap.Demo.Wms project.
Here you can find useful code to implement your tasks.
More specifically: the easier way I've used to implement tasks like yours is via a specific httphandler with custom code that query the sharpmap map and layer objects, retrieve te geometric data and serialize the geojson response.
Try to take a look at this code first: SharpMap.Demo.Wms.StdJsonMapHandler and the Leaflet sample, that retrieve GeoJSON data as you may need to do.
Then let me see how I can help you.