Problem with WMS 1.1.1 data providers in QGIS 2.0.1

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with WMS 1.1.1 data providers in QGIS 2.0.1

Miguel Ángel Castro
I am using QGIS 2.0.1 standalone installed in a  Windows 7 64 bits system.

Example of WMS datasource: (datasource WMS 1.1.1) EPSG:32628 


In layer properties/metadata you can see the information from datasource, but no display the layer (not load data) in canvas.

In log messages: Map request error (status: 200 .... getDouble(): Symbol definition error. Parsing error near (96): (line 1).

Does anybody have an idea what is the problem?


Thanks
Miguel Ángel castro



_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Problem with WMS 1.1.1 data providers in QGIS 2.0.1

Richard Duivenvoorde
On 21-10-13 20:07, Miguel Ángel Castro wrote:

> I am using QGIS 2.0.1 standalone installed in a  Windows 7 64 bits system.
>
> Example of WMS datasource: (datasource WMS 1.1.1) EPSG:32628
>
> http://idecan2.grafcan.es/ServicioWMS/EspNat   
>
> In layer properties/metadata you can see the information from
> datasource, but no display the layer (not load data) in canvas.
>
> In log messages: Map request error (status: 200 .... getDouble(): Symbol
> definition error. Parsing error near (96): (line 1).
>
> Does anybody have an idea what is the problem?

Hi Miguel,

the error message that you see is a (Minnesota) Mapserver error message.
Somewhere in the style definitions it expects a number (or not).

This url I get from QGIS in debug mode, and gives you your error:

http://idecan2.grafcan.es/ServicioWMS/EspNat?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=152208.544610834447667,2940195.98510535480454564,692329.70807293173857033,3376338.62686863588169217&SRS=EPSG:32628&WIDTH=670&HEIGHT=541&LAYERS=EENN&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&TRANSPARENT=TRUE

Bug if I remove the "&DPI=96&MAP_RESOLUTION=96" part from it, I get a map:

http://idecan2.grafcan.es/ServicioWMS/EspNat?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=152208.544610834447667,2940195.98510535480454564,692329.70807293173857033,3376338.62686863588169217&SRS=EPSG:32628&WIDTH=670&HEIGHT=541&LAYERS=EENN&STYLES=&FORMAT=image/png

I'm not familiar with the exact WMS-standard, but as most WMS servers I
know (and use) can handle these two query parameters from QGIS, I think
it is a Mapserver configuration problem/error. You cannot let QGIS
remove those params I think.

Regards,


Richard Duivenvoorde
_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Problem with WMS 1.1.1 data providers in QGIS 2.0.1

Jonathan Moules-2
Looking at the specs briefly, it doesn't seem like the ability to set DPI explicitly is specified in WMS 1.1.0 or 1.3.0.
I guess that MapServer can't handle stuff it's not expecting. Maybe a config option as Richard suggests.

Jonathan



On 21 October 2013 19:32, Richard Duivenvoorde <[hidden email]> wrote:
On 21-10-13 20:07, Miguel Ángel Castro wrote:
> I am using QGIS 2.0.1 standalone installed in a  Windows 7 64 bits system.
>
> Example of WMS datasource: (datasource WMS 1.1.1) EPSG:32628
>
> http://idecan2.grafcan.es/ServicioWMS/EspNat
>
> In layer properties/metadata you can see the information from
> datasource, but no display the layer (not load data) in canvas.
>
> In log messages: Map request error (status: 200 .... getDouble(): Symbol
> definition error. Parsing error near (96): (line 1).
>
> Does anybody have an idea what is the problem?

Hi Miguel,

the error message that you see is a (Minnesota) Mapserver error message.
Somewhere in the style definitions it expects a number (or not).

This url I get from QGIS in debug mode, and gives you your error:

http://idecan2.grafcan.es/ServicioWMS/EspNat?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=152208.544610834447667,2940195.98510535480454564,692329.70807293173857033,3376338.62686863588169217&SRS=EPSG:32628&WIDTH=670&HEIGHT=541&LAYERS=EENN&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&TRANSPARENT=TRUE

Bug if I remove the "&DPI=96&MAP_RESOLUTION=96" part from it, I get a map:

http://idecan2.grafcan.es/ServicioWMS/EspNat?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=152208.544610834447667,2940195.98510535480454564,692329.70807293173857033,3376338.62686863588169217&SRS=EPSG:32628&WIDTH=670&HEIGHT=541&LAYERS=EENN&STYLES=&FORMAT=image/png

I'm not familiar with the exact WMS-standard, but as most WMS servers I
know (and use) can handle these two query parameters from QGIS, I think
it is a Mapserver configuration problem/error. You cannot let QGIS
remove those params I think.

Regards,


Richard Duivenvoorde
_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user


This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.
_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Problem with WMS 1.1.1 data providers in QGIS 2.0.1

Rahkonen Jukka (Tike)
In reply to this post by Richard Duivenvoorde
Richard Duivenvoorde <rdmailings@...> writes:

>
> On 21-10-13 20:07, Miguel Ángel Castro wrote:
> > I am using QGIS 2.0.1 standalone installed in a  Windows 7 64 bits system.
> >
> > Example of WMS datasource: (datasource WMS 1.1.1) EPSG:32628
> >
> > http://idecan2.grafcan.es/ServicioWMS/EspNat   
> >
> > In layer properties/metadata you can see the information from
> > datasource, but no display the layer (not load data) in canvas.
> >
> > In log messages: Map request error (status: 200 .... getDouble(): Symbol
> > definition error. Parsing error near (96): (line 1).
> >
> > Does anybody have an idea what is the problem?
>
> Hi Miguel,
>
> the error message that you see is a (Minnesota) Mapserver error message.
> Somewhere in the style definitions it expects a number (or not).
>
> This url I get from QGIS in debug mode, and gives you your error:
>
>
http://idecan2.grafcan.es/ServicioWMS/EspNat?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=152208.544610834447667,2940195.98510535480454564,692329.70807293173857033,3376338.62686863588169217&SRS=EPSG:32628&WIDTH=670&HEIGHT=541&LAYERS=EENN&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&TRANSPARENT=TRUE
>
> Bug if I remove the "&DPI=96&MAP_RESOLUTION=96" part from it, I get a map:
>
>
http://idecan2.grafcan.es/ServicioWMS/EspNat?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=152208.544610834447667,2940195.98510535480454564,692329.70807293173857033,3376338.62686863588169217&SRS=EPSG:32628&WIDTH=670&HEIGHT=541&LAYERS=EENN&STYLES=&FORMAT=image/png
>
> I'm not familiar with the exact WMS-standard, but as most WMS servers I
> know (and use) can handle these two query parameters from QGIS, I think
> it is a Mapserver configuration problem/error. You cannot let QGIS
> remove those params I think.

Hi,

That certain server is a pretty old Mapserver v. 5.0 and it does not like
the non-standard vendor parameter &MAP_RESOLUTION=96. Fresh Mapservers do
not fail because of that and actually since version 6.0 Mapserver supports
vendor option MAP_RESOLUTION.

According to WMS standard servers should quietly skip extra parameters so
principally there is a bug in Mapserver 5.0.  However, I do not like that
QGIS is adding always its own vendor parameters and users do not have a way
to turn off the non-standard parameters. I have two reasoning for this:

1) MAP_RESOLUTION is not defined in the standard and for server A it can
mean something different than for server B while QGIS may be awaiting still
something else.
2) Even vendor options should be skipped, we have here an example that some
servers may fail in skipping them. Nobody will fix Mapserver 5.0 and even it
is wrong, it is the QGIS user who suffers now. User can only ask server
admin to update (it may take a while) or switch off QGIS and use another WMS
client like OpenJUMP.

For my mind it should be possible to configure QGIS WMS to run in a safe
mode and use only those parameters which belong to WMS standard.

-Jukka Rahkonen-




_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Problem with WMS 1.1.1 data providers in QGIS 2.0.1

Jonathan Moules-2
For my mind it should be possible to configure QGIS WMS to run in a safe
mode and use only those parameters which belong to WMS standard.


+1

Thinking about it, what about a dialog where it's possible to configure what a standard WMS request contains?

Ignore the fact it looks suspiciously like Excel, but imagine a QGIS dialog that let you put pieces together like this:

Inline images 2

Where % are predefined QGIS variables. Use a "+" and "-" button to add/remove rows (and thus parameters) to the table.

Could work for WFS and WCS too.

Create various different "profiles" and distribute those as standard. Easy to use for both lay-users (pre-configured profiles that are specification compliant), and technical users.

Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.
_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Problem with WMS 1.1.1 data providers in QGIS 2.0.1

Bernhard Ströbl
In reply to this post by Rahkonen Jukka (Tike)
Hi,

FYI Jürgen has pushed a patch into master making add the dpi an option.
Switching it off should display any maps 1.8 could display.

Advanced users may also add their desired vendor options or additional
paramters to the server's URL by themselves, e.g. if one needs another
dpi than screen resolution for printing reasons.

Bernhard

Am 22.10.2013 15:58, schrieb Jukka Rahkonen:

> Richard Duivenvoorde<rdmailings@...>  writes:
>
>>
>> On 21-10-13 20:07, Miguel Ángel Castro wrote:
>>> I am using QGIS 2.0.1 standalone installed in a  Windows 7 64 bits system.
>>>
>>> Example of WMS datasource: (datasource WMS 1.1.1) EPSG:32628
>>>
>>> http://idecan2.grafcan.es/ServicioWMS/EspNat
>>>
>>> In layer properties/metadata you can see the information from
>>> datasource, but no display the layer (not load data) in canvas.
>>>
>>> In log messages: Map request error (status: 200 .... getDouble(): Symbol
>>> definition error. Parsing error near (96): (line 1).
>>>
>>> Does anybody have an idea what is the problem?
>>
>> Hi Miguel,
>>
>> the error message that you see is a (Minnesota) Mapserver error message.
>> Somewhere in the style definitions it expects a number (or not).
>>
>> This url I get from QGIS in debug mode, and gives you your error:
>>
>>
> http://idecan2.grafcan.es/ServicioWMS/EspNat?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=152208.544610834447667,2940195.98510535480454564,692329.70807293173857033,3376338.62686863588169217&SRS=EPSG:32628&WIDTH=670&HEIGHT=541&LAYERS=EENN&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&TRANSPARENT=TRUE
>>
>> Bug if I remove the "&DPI=96&MAP_RESOLUTION=96" part from it, I get a map:
>>
>>
> http://idecan2.grafcan.es/ServicioWMS/EspNat?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=152208.544610834447667,2940195.98510535480454564,692329.70807293173857033,3376338.62686863588169217&SRS=EPSG:32628&WIDTH=670&HEIGHT=541&LAYERS=EENN&STYLES=&FORMAT=image/png
>>
>> I'm not familiar with the exact WMS-standard, but as most WMS servers I
>> know (and use) can handle these two query parameters from QGIS, I think
>> it is a Mapserver configuration problem/error. You cannot let QGIS
>> remove those params I think.
>
> Hi,
>
> That certain server is a pretty old Mapserver v. 5.0 and it does not like
> the non-standard vendor parameter&MAP_RESOLUTION=96. Fresh Mapservers do
> not fail because of that and actually since version 6.0 Mapserver supports
> vendor option MAP_RESOLUTION.
>
> According to WMS standard servers should quietly skip extra parameters so
> principally there is a bug in Mapserver 5.0.  However, I do not like that
> QGIS is adding always its own vendor parameters and users do not have a way
> to turn off the non-standard parameters. I have two reasoning for this:
>
> 1) MAP_RESOLUTION is not defined in the standard and for server A it can
> mean something different than for server B while QGIS may be awaiting still
> something else.
> 2) Even vendor options should be skipped, we have here an example that some
> servers may fail in skipping them. Nobody will fix Mapserver 5.0 and even it
> is wrong, it is the QGIS user who suffers now. User can only ask server
> admin to update (it may take a while) or switch off QGIS and use another WMS
> client like OpenJUMP.
>
> For my mind it should be possible to configure QGIS WMS to run in a safe
> mode and use only those parameters which belong to WMS standard.
>
> -Jukka Rahkonen-
>
>
>
>
> _______________________________________________
> Qgis-user mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/qgis-user



__________ Information from ESET Mail Security, version of virus signature database 8952 (20131022) __________

The message was checked by ESET Mail Security.
http://www.eset.com


_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Problem with WMS 1.1.1 data providers in QGIS 2.0.1

magerlin
I have a similar problem with a wms-service (the wms works fine i 1.8, but not in 2.1 or master).

In Qgis 2.0 I get the same error message as mentioned above:
Map request error (Status: 200; Response: getDouble(): Symbol definition error. Parsing error near (96):(line 1) ; Content-Type: text/html; URL:http://webmapservice.krak.dk/wms/krak?kwuid=pjh@ramboll.dk&kwpwd=XXXXXX&&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=107868.29628239112207666,6040541.00705500040203333,1108077.45497660897672176,6416608.14580199960619211&SRS=EPSG:25832&WIDTH=1391&HEIGHT=523&LAYERS=krak&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE)

But in Qgis master after having selected the new option DPI mode off, I get another error message:

Download of GetLegendGraphic failed: Error downloading http://webmapservice.krak.dk/wms/krak?kwuid=pjh@ramboll.dk&kwpwd=xxxxx&&SERVICE=WMS&VERSION=1.1.1&SLD_VERSION=1.1.0&REQUEST=GetLegendGraphic&LAYER=krak&STYLE=default&SCALE=8798788.573996&FORMAT=image/png - server replied: Internal Server Error

Is the REQUEST=GetLegendGraphic something new (and non standard?) introduced in master?

(I have had to blank out password with xxxxxx in the above error messages).
Regards Morten

Currently using Qgis 2.18.23 (OSGeo4) and Qgis 3.8.0 in parallel
Windows 7, 64bit