I am working on a project where displaying data from a WFS from this site, but I am having a lot of trouble figuring out how. I would like to know if this is possible, or if I am wasting my time. Through my research i have come across terms like geoserver og openlayers, and I have grown conserned that i can only access the WFS if it is within one of these (making my WFS useless).

Can anyone clerifye this for me? And if it is possible, can someone show me a simple example?


The Idea is to make a web page where users can view the data. Since the data is updated daily or weekly it would be nice to connect to the WFS client. My problem, is I don't understand how to make a proper GetFeature URL, and how to handel it when i do. I just recently discoverd that uploading the data throu a webpage might be a posible solution, and therfore havent had much time to learn how it works. I do however see that this solution might be much better and much more accessible that a qgis plugin, which is what i am making now, and might therfore be worth the time. I have allready spent a week on this, and will spend more time if it is possible. But I don't wan't to spend any more time if it is a dead end.

  • 1
    Please explain in more details what is the problem. That service seems to run on a not completely standard WFS server and the schemata are rather complecated (for example skjema.test.geonorge.no/SOSI/produktspesifikasjon/…) but service does send data wfs.geonorge.no/skwms1/… – user30184 Mar 16 '18 at 14:00
  • The WFS 1.1.0 service doesn't seem to be working correctly (I just get errors on DescribeFeatureType). I have a feeling that OpenLayers can't handle WFS 2.0, so you might be stuck. – nmtoken Mar 16 '18 at 15:04
  • DescribeFeatureType just requires outputformat, which may be against the standard wfs.geonorge.no/skwms1/…. The result has a link that I included in my first comment. – user30184 Mar 16 '18 at 15:10

To display WFS data on your website, you need a) the data and b) to show it.

The data resides on a map server, GeoServer being one of them. On your website, you use a library such as OpenLayers or Leaflet to fetch the data from the server and display it.

In your case, you want to display the data from an existing server, so you would only need OpenLayers (or another library) to show it. You can see it in this demo.

Note that you would need to read the GetCapabilities request from the data server in order to build the proper GetFeature URL. This GetCapabilities URL is the one provided in the website describing the data in your post.

  • I am pretty sure that OpenLayers cannot visualize out-of-the-box the complex GML data from that WFS service and it may be hard to find any other ready made javascript solutions. What might work is to download data with GetFeature request to local disk and continue with QGIS and this extension github.com/BRGM/gml_application_schema_toolbox – user30184 Mar 16 '18 at 14:44
  • @JGH Thank you for your clerification. I am trying to duplicate the demo with my WFS, but I am having trouble with the url. I think the problem lies in outputFormat=application/json, as my WFS dosen't to have that outputFormat, but I am not entierly sure – Kasper Skjeggestad Mar 16 '18 at 17:32
  • @user30184 I see, then that might be my problem. Thank you for the suggestion, but the database the WFS is connected to might opdate daily. I therfor wanted the page to load the layer with all object whenever the page was opend. – Kasper Skjeggestad Mar 16 '18 at 17:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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