Hi,

Here are my initial thoughts:

- examine the exact request submitted by QGIS (examine each parameter), see https://github.com/mapserver/mapserver/wiki/Get-the-Raw-WMS-Request-Generated-by-QGIS - I remember an issue of GetCapabilities requests being cut-off, but that was years ago in a much older MapServer version - for that last reason I would be sure that the MapServer server is using version 8.0 or 7.6.4 - I have also been here before when the "wms_onlineresource" url is incorrect in the server's mapfile, causing issues in QGIS (sometimes that could be an HTTPS redirect, or a minor change in the url). I've got that t-shirt several times, ha

Those are my quick thoughts.

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2022-11-10 12:43 p.m., Marcin Niemyjski via MapServer-users wrote:
Hello,

coming back to you with error which I can't overcome. I created mapfile from vrt rasters created by gdal warp -of VRT from tiffs with GCP georeference. While trying to add wms layer to qgis it throws error: *The server you are trying to connect to does not seem to be a WMS server. Please check the URL.*

Details (or message obtained aftery request GetCapabilities) seems to be wms XML file which unexetedly stoped generaing and stars with:

*Instead of the capabilities string that was expected, the following response has been received:* *Could not get WMS capabilities: unexpected end of file at line 8905 column 63*
*This is probably due to an incorrect WMS Server URL.*
*Response was:*
*<?xml version='1.0' encoding="UTF-8" standalone="no" ?>*
*<WMS_Capabilities version="1.3.0"  xmlns="http://www.opengis.net/wms";
*
*
*
ends with:

*        </EX_GeographicBoundingBox>
         <BoundingBox CRS="EPSG:4326"
                     minx="34.6282" miny="86.661" maxx="36.532"
*
*
*
Mapfile consist of 419 mapfiles, when I leave few *random *layers it loads in other cases - throws errors.

Hope someone has workaround.
Best,
Marcin


_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to