I'm using Openlayers 3 with geoserver for showing roads and temperature information from a NetCDF. When I select a road, I would like to get the temperature information for each coordinate of the road.

Using getGetFeatureInfoUrl it's possible to get the information of one point, but if I tried to get it from many points using a loop, it takes much time.

Which is the correct way to do this? Is there a way to send linestring coordinates as a parameter?


No, there is no such a thing in standard OGC protocols.

GeoServer has an extension for multidimensional data called "ncWMS extension" that adds some extra, but not the particular one you're looking for, which would be called "GetTransect".


  • Implement, or sponsor, GetTransect in GeoServer "ncWMS extensions"
  • Implement a WPS process doing the same
  • Use ncWMS (the server that inspired the above extensions)

you should put in the WMS url this propriety FEATURE_COUNT=N with N the number of features that you want get. example:

 "localhost:8080/geoserver/wms?service=WMS&version=1.1.1& request=GetCapabilities&FEATURE_COUNT=100"

on this example the WMS url return maximally 100 features.

and after that, you will be able to get get all features by using loop on ajax request.

  • Thank you for your answer, but getting all features in one click is not my problem. The problem is to get the información of several coordinates at the same time – Raúl Ruiz Canas Mar 3 '17 at 7:50
  • No features will be returned on a GetCapabilities request – nmtoken Dec 6 '17 at 18:47

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.