<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="Helvetica, Arial, sans-serif">Dear All,<br>
<br>
as this list is a source of much deeper insight than I have into
Mapserver, I would like to ask about a very strange issue I am
facing.<br>
<br>
I am calling on a public WFS server I can query "by hand" fast and
successfully every single time. Now I defined a Mapserver layer
(see below) as an OGR layer in my WFS map-file and it does - on
the same call - return data. But not reliably, more at random. I
played with the connection-timeout and the maxfeatures and it
seemed to have some influence but again, not reliably. I'll post
the relevant parts of my mapfile (all my other layers with other
sources are working fine):<br>
"""<br>
MAP<br>
NAME "WFS_Test"<br>
SHAPEPATH "/data"<br>
STATUS ON<br>
UNITS METERS<br>
EXTENT -2851663 2776500 5630523 9970363<br>
<br>
PROJECTION<br>
"init=epsg:3857"<br>
END # PROJECTION<br>
<br>
WEB<br>
FOOTER "TestServer"<br>
IMAGEPATH "/tmp/"<br>
TEMPPATH "/tmp/"<br>
IMAGEURL "/tmp/"<br>
METADATA<br>
"wfs_title" "Test"<br>
"ows_onlineresource"
<a class="moz-txt-link-rfc2396E" href="http://my_server.de/cgi-bin/mapserv?map=/var/www/html/wfs.map">"http://my_server.de/cgi-bin/mapserv?map=/var/www/html/wfs.map"</a><br>
"ows_enable_request" "*"<br>
"ows_srs" "EPSG:3857 EPSG:4326 EPSG:25832"<br>
"wfs_srs" "EPSG:3857 EPSG:4326 EPSG:25832"<br>
"wfs_getfeature_formatlist" "jsonp,ogrgml"<br>
"wfs_encoding" "UTF-8"<br>
"wfs_connectiontimeout" "20"<br>
#"wfs_request_method" "GET"<br>
END # METADATA<br>
VALIDATION<br>
callback ".*"<br>
END<br>
END # WEB<br>
<br>
OUTPUTFORMAT<br>
NAME "jsonp"<br>
DRIVER "OGR/GEOJSON"<br>
MIMETYPE "application/json; subtype=geojson; charset=utf-8"<br>
FORMATOPTION "STORAGE=stream"<br>
FORMATOPTION "FORM=SIMPLE"<br>
FORMATOPTION "LCO:COORDINATE_PRECISION=10"<br>
FORMATOPTION "JSONP=%callback%"<br>
END<br>
<br>
OUTPUTFORMAT<br>
NAME "OGRGML"<br>
DRIVER "OGR/GML"<br>
FORMATOPTION "STORAGE=filesystem"<br>
FORMATOPTION "FORM=multipart"<br>
FORMATOPTION "FILENAME=result.gml"<br>
END<br>
<br>
SYMBOL<br>
NAME "circle_filled"<br>
TYPE ELLIPSE<br>
FILLED TRUE<br>
POINTS<br>
1 1<br>
END<br>
END<br>
<br>
LAYER<br>
NAME "TestLayer"<br>
CONNECTION "wfs-request-testlayer.xml"<br>
EXTENT 84710 5210905 1163008 6125425<br>
CONNECTIONTYPE OGR<br>
STATUS ON<br>
DATA "dop"<br>
METADATA<br>
"wfs_version" "2.0.0"<br>
"wfs_title" "TestLayer_WFS"<br>
"wfs_connectiontimeout" "100"<br>
"wfs_typename" "TestLayer_WFS_int"<br>
"wfs_maxfeatures" "600"<br>
<br>
END # METADATA<br>
PROJECTION<br>
"init=epsg:25832"<br>
END # PROJECTION<br>
TYPE POLYGON<br>
CLASS<br>
NAME "aerial_image_footprint"<br>
STYLE<br>
OUTLINECOLOR 255 0 0<br>
WIDTH 0.7<br>
END # STYLE<br>
END # CLASS<br>
END # LAYER<br>
"""<br>
I made the xml-file wit ogrinfo as I did for many other layers
that work.<br>
The call is:<br>
"""<br>
<a class="moz-txt-link-freetext" href="http://localhost:8181/cgi-bin/mapserv?map=/var/www/html/wfs.map&">http://localhost:8181/cgi-bin/mapserv?map=/var/www/html/wfs.map&</a><br>
SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&SRSNAME=EPSG:3857&BBOX=1292610.86313433,6822730.62911591,1293128.57472490,6823169.70765144&TYPENAME=</font><font
face="Helvetica, Arial, sans-serif"><font face="Helvetica, Arial,
sans-serif">TestLayer</font><br>
"""<br>
If I replace the Server name with the public server, it works like
a breeze (even it is 3857). <br>
The public server has:<br>
"""</font><span style="color: #800000;"><br>
<DefaultCRS></span><span style="color: #000000;">urn:ogc:def:crs:EPSG:6.9:25832</span><span
style="color: #800000;"></DefaultCRS></span>
<div style="color: #000000;background-color: #ffffff;font-family: 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback';font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span style="color: #800000;"><OtherSRS></span><span style="color: #000000;">urn:ogc:def:crs:EPSG:6.9:4326</span><span style="color: #800000;"></OtherSRS></span></div></div>
<font face="Helvetica, Arial, sans-serif">"""<br>
<br>
I see the following response in the browser:<br>
"""<br>
</font><font face="Helvetica, Arial, sans-serif"><span
class="html-tag" style="font-family: monospace; font-size: 13px;
font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; orphans: 2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration-thickness: initial; text-decoration-style:
initial; text-decoration-color: initial;"><wfs:FeatureCollection<span
class="html-attribute"><span> </span><span
class="html-attribute-name">xmlns:ms</span>="<span
class="html-attribute-value"><a class="moz-txt-link-freetext" href="http://mapserver.gis.umn.edu/mapserver">http://mapserver.gis.umn.edu/mapserver</a></span>"</span><span
class="html-attribute"><span> </span><span
class="html-attribute-name">xmlns:gml</span>="<span
class="html-attribute-value"><a class="moz-txt-link-freetext" href="http://www.opengis.net/gml/3.2">http://www.opengis.net/gml/3.2</a></span>"</span><span
class="html-attribute"><span> </span><span
class="html-attribute-name">xmlns:wfs</span>="<span
class="html-attribute-value"><a class="moz-txt-link-freetext" href="http://www.opengis.net/wfs/2.0">http://www.opengis.net/wfs/2.0</a></span>"</span><span
class="html-attribute"><span> </span><span
class="html-attribute-name">xmlns:xsi</span>="<span
class="html-attribute-value"><a class="moz-txt-link-freetext" href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a></span>"</span><span
class="html-attribute"><span> </span><span
class="html-attribute-name">xsi:schemaLocation</span>="<span
class="html-attribute-value"><a class="moz-txt-link-freetext" href="http://mapserver.gis.umn.edu/mapserver">http://mapserver.gis.umn.edu/mapserver</a>
<a class="moz-txt-link-freetext" href="http://wfs/cgi-bin/mapserv?map=/var/www/html/wfs.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&TYPENAME=DOP_AGE_DE&OUTPUTFORMAT=application%2Fgml%2Bxml%3B%20version%3D3.2">http://wfs/cgi-bin/mapserv?map=/var/www/html/wfs.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&TYPENAME=DOP_AGE_DE&OUTPUTFORMAT=application%2Fgml%2Bxml%3B%20version%3D3.2</a>
<a class="moz-txt-link-freetext" href="http://www.opengis.net/wfs/2.0">http://www.opengis.net/wfs/2.0</a>
<a class="moz-txt-link-freetext" href="http://schemas.opengis.net/wfs/2.0/wfs.xsd">http://schemas.opengis.net/wfs/2.0/wfs.xsd</a>
<a class="moz-txt-link-freetext" href="http://www.opengis.net/gml/3.2">http://www.opengis.net/gml/3.2</a>
<a class="moz-txt-link-freetext" href="http://schemas.opengis.net/gml/3.2.1/gml.xsd">http://schemas.opengis.net/gml/3.2.1/gml.xsd</a></span>"</span><span
class="html-attribute"><span> </span><span
class="html-attribute-name">timeStamp</span>="<span
class="html-attribute-value">2021-05-27T06:30:38</span>"</span><span
class="html-attribute"><span> </span><span
class="html-attribute-name">numberMatched</span>="<span
class="html-attribute-value">0</span>"</span><span
class="html-attribute"><span> </span><span
class="html-attribute-name">numberReturned</span>="<span
class="html-attribute-value">0</span>"</span>></span><span
style="color: rgb(0, 0, 0); font-family: monospace; font-size:
13px; font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; orphans: 2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration-thickness: initial; text-decoration-style:
initial; text-decoration-color: initial;"><span> </span></span><span
class="html-tag" style="font-family: monospace; font-size: 13px;
font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; orphans: 2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration-thickness: initial; text-decoration-style:
initial; text-decoration-color: initial;"></wfs:FeatureCollection></span><br>
"""<br>
And in the log:<br>
"""<br>
[warn] [pid 26] mod_fcgid: stderr: msQueryByRect(): Search
returned no results. No matching record(s) found.<br>
[warn] [pid 26] mod_fcgid: stderr: freeLayer(): freeing layer at
0x131f120.<br>
3169463 - 172.17.0.1 - - [27/May/2021:06:30:35 +0000] "GET
/cgi-bin/mapserv?map=/var/www/html/wfs.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&SRSNAME=EPSG:3857&BBOX=1292610.86313433,6822730.62911591,1293128.57472490,6823169.70765144&TYPENAME=</font><font
face="Helvetica, Arial, sans-serif"><font face="Helvetica, Arial,
sans-serif"><font face="Helvetica, Arial, sans-serif">TestLayer</font></font>
HTTP/1.1" 200 793 "-" "Mozilla/5.0 (X11; Linux x86_64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212
Safari/537.36"<br>
330 - 172.17.0.1 - - [27/May/2021:06:30:38 +0000] "GET
/favicon.ico HTTP/1.1" 200 414
"<a class="moz-txt-link-freetext" href="http://localhost:8181/cgi-bin/mapserv?map=/var/www/html/wfs.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&SRSNAME=EPSG:3857&BBOX=1292610.86313433,6822730.62911591,1293128.57472490,6823169.70765144&TYPENAME=">http://localhost:8181/cgi-bin/mapserv?map=/var/www/html/wfs.map&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&SRSNAME=EPSG:3857&BBOX=1292610.86313433,6822730.62911591,1293128.57472490,6823169.70765144&TYPENAME=</a></font><font
face="Helvetica, Arial, sans-serif"><font face="Helvetica, Arial,
sans-serif"><font face="Helvetica, Arial, sans-serif">TestLayer</font></font>"
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/90.0.4430.212 Safari/537.36"<br>
"""<br>
I will be grateful for any clue on what is going on. Thank you for
your trouble!<br>
<br>
Best<br>
<br>
Lars<br>
</font>
<div class="moz-signature">
<meta charset="utf-8">
<title>SkenData Email Signatur</title>
</div>
</body>
</html>