My environment is ASP.NET, with data stored in SQL Server. Is there a way to serve Web Feature Services through C#, or will I need to install a mapping server?

3 Answers 3


You will need a mapping server unless you want to implement the entire WFS protocol which is highly not recommended.

  • Yes, I agree with the principle, though am using Asure services, which doesn't offer me the ability to install server software. I want to tack the functionality onto an existing product.
    – BlinkyBill
    Commented Sep 21, 2012 at 1:00
  • Well, then you are going to need to find a pure .NET Server WFS implementation from somewhere. Having seen the immense amount of pain that came from the co-worker implementing WFS 1.1 for ESRI, I would caution against doing this. Most likely you are going to end up with a subset of WFS 1.1 at which point where it becomes questionable why you would even implement WFS at all and not go a simpler route. Commented Sep 21, 2012 at 18:01

You could serve WFS (and WMS) from C# by using Mapserver [WxS mapscript wrappers] 1.

They are available, among other languages, for C#. Binary builds here.


You would need a mapping server as @Ragi mentioned. It just doesn't make sense to reimplement the whole stack.

You could start with Geoserver. According to the OpenGeo site, it has the following features:

  • Implements OGC services including Web Map Service (WMS 1.1.1 and 1.3.0), Web Feature Service (WFS 1.0.0 and 1.1.0), WFS-Transactional (WFS-T 1.0.0), and Web Coverage Service (WCS 1.0.0 and 1.1.1) Java J2EE application, works with Jetty, Tomcat, WebLogic, WebSphere, JBoss
  • Support for many back-end data formats (ArcSDE, Oracle Spatial, DB2, SQL Server, shapefile, GeoTIFF, MrSID, JPEG2000)
  • Multiple output formats (GML, shapefile, KML, GeoJSON, PNG, JPEG, TIFF, SVG, PDF, GeoRSS) plus Google Earth integration
  • Fully-featured and intuitive web administration interface with REST API for programmatic control
  • Full map styling support with Styled Layer Descriptor (SLD), including text-based and graphical editor User- and role-based security subsystem based on Spring Security

I'm just curious though, does it have to be WFS?

  • While WMS will be ok in most situations, i would like to be able to serve at the feature level.
    – BlinkyBill
    Commented Sep 21, 2012 at 0:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.