I configured WFS service with "Maximum number of features for preview" to 50 but when i try to get features my request returns only one value, for example


and with &feature_count parameter geoserver accepts only 50 as value but also adding this the ouput is the same the above. Instead I want an output as:

{"type":"FeatureCollection","totalFeatures":"unknown","features":[{"type":"Feature","id":"","geometry":null,"properties":{"GRAY_INDEX":-9999}}, {"type":"Feature","id":"","geometry":null,"properties":{"GRAY_INDEX":4}}],"crs":null}


In my Geoserver I have multiple time spaced rasters for each layer. When I try the GetFeatureInfo request above I specify also a time range as &time=[from]/[to]. Because the bounding box of these rasters are overlapped, I want that the WMS request returns a list of pixel features when I click on the overlapped area.


The request is:

  • 1
    You are mixing WFS service and GetFeatureInfo request which belongs to WMS. But based on the return value you are making GetFeatureInfo for a raster layer. You would like to get info from many pixels, or? I believe that it is not supported.
    – user30184
    Apr 14, 2016 at 9:04
  • I'm assuming you have turned the time dimension on for the raster? Can you add your actual request to the question
    – Ian Turton
    Apr 14, 2016 at 9:28
  • @iant How can check If time dimension is on? Apr 14, 2016 at 9:33
  • look at the layer's entry in the getCapabilities document
    – Ian Turton
    Apr 14, 2016 at 9:33
  • @iant yes Time is enabled in the Dimensions tab Apr 14, 2016 at 9:48

1 Answer 1


You are making a GetFeatureInfo request to a WMS service, the WMS is required by the standard to return information about the point you have clicked on. If there is more than one feature at the point then it may return information about all the features (up to featureCount) that are there.

You seem to be asking for information about a raster so the request returns the value of the pixel that is at the point you have clicked on. Since you seem not to have many layers there you will only get back one pixel's value regardless of how high you set featureCount.

If you are trying to fetch an area of the raster then you probably want to look at using a Web Coverage Service (WCS) request.

  • 1
    In theory GetFeatureInfo with vendor parameter "buffer" could fetch an area docs.geoserver.org/stable/en/user/services/wms/….
    – user30184
    Apr 14, 2016 at 9:10
  • @user30184 - sort of but it is ugly and difficult to use that way
    – Ian Turton
    Apr 14, 2016 at 9:12
  • I have multiple time spaced raster for one layer. When I click I can see that the pixel is inside two different rasters and so I want that WMS returns both pixels. Apr 14, 2016 at 9:15
  • @MarcoCiaramella - you will need to edit your question with more detail about your setup and the requests you are making. Do you have time set in the request?
    – Ian Turton
    Apr 14, 2016 at 9:16
  • @iant yes I have time set in the request in the form of from_time/to_time. Apr 14, 2016 at 9:19

Your Answer

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

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