[mapserver-users] The GetFeature WFS Request fail if the layer is empty

Andrea Peri aperi2007 at gmail.com
Tue Aug 13 02:34:33 PDT 2019


Hi Jukka,

I'm testing with GetFeature using a postgis table.
The table in my test is not empty, but I apply a filter to the query for
the data retrieving of the layer and the result with the filter is an empty
dataset.

A.


Il giorno mar 13 ago 2019 alle ore 09:00 Rahkonen Jukka (MML) <
jukka.rahkonen at maanmittauslaitos.fi> ha scritto:

> Hi,
>
>
>
> What kind of source dataset do you have, and do you mean that for example
> a PostGIS table exists but there are no rows in the table?
>
>
>
> -Jukka Rahkonen-
>
>
>
> *Lähettäjä:* mapserver-users <mapserver-users-bounces at lists.osgeo.org> *Puolesta
> *Andrea Peri
> *Lähetetty:* maanantai 12. elokuuta 2019 14.30
> *Vastaanottaja:* mapserver-users at lists.osgeo.org
> *Aihe:* [mapserver-users] The GetFeature WFS Request fail if the layer is
> empty
>
>
>
> Hi,
>
> I' notice that the GetFeature WFS request of a mapserver (i'm work using
> master) return an error if the dataset (and so the layer) is empty.
>
>
>
> I test using version 1.0.0, 1.1.1 and 2.00.
>
>
>
> On 2.0.0 the result is:
>
> http status 400
>
> *The request sent by the client was syntactically incorrect.*
>
>
>
> On 1.1.0 and 1.0.0 the result is an xml exception with:
>
> msWFSGetFeature(): WFS server error. ms_error->code not found
>
>
>
> I Guess it should return not an exception or error, but instead an empty
> GML or an Empty Shapefile and so on...
>
>
>
> Before to build a test service of this issue, I like to know if this
> instead is a confirmed specific characteristic of a wfs service.
>
>
>
> Thx,
>
>
>
> --
>
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------
>


-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20190813/7d89a252/attachment.html>


More information about the mapserver-users mailing list