[MapServer-users] The server you are trying to connect to does not seem to be a WMS server. Please check the URL. WMS XML stops generating

2022-11-10 Thread Marcin Niemyjski via MapServer-users
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:

http://www.opengis.net/wms;

ends with:


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


Re: [MapServer-users] using SCALETOKEN in an EXPRESSION

2022-11-10 Thread Richard Greenwood
Ah, good point. The examples do all show it being used in conjunction with
the DATA statement.

Thanks,
Rich

On Thu, Nov 10, 2022 at 1:29 AM Eichner, Andreas - SID <
andreas.eich...@sid.sachsen.de> wrote:

> According to RFC 86 SCALETOKENs are used to replace tokens inside a
> layer’s DATA statement - so it might simply not work within class
> expressions.
> As a workaround you might use MINSCALEDENOM and MAXSCALEDENOM within CLASS.
>
> Kind regards,
> Andreas
>
> -Ursprüngliche Nachricht-
> Von: MapServer-users  Im Auftrag
> von Richard Greenwood
> Gesendet: Donnerstag, 10. November 2022 03:00
> An: mapserver 
> Betreff: [MapServer-users] using SCALETOKEN in an EXPRESSION
>
> Can anyone tell me what's wrong with my EXPRESSION below? I'm trying to
> filter features from the National Hydrology Dataset based on scale using
> SCALETOKEN and I can't seem to get it right. [Visibility] is a field in the
> data that suggests the scale at which a feature should be shown.
>
> Thanks!
>
> LAYER
>   NAME "flowline"
>   TYPE line
>   DATA "shapefiles3857/nhd/flowline"
>   SCALETOKEN
> NAME "%priority%"
> VALUES
>   "0"   "0"
>   "24000"   "24000"
>   "5"   "5"
>   "10"  "10"
>   "25"  "25"
>   "50"  "50"
>   "100" "100"
>   "200" "200"
>   "500" "500"
> END
>   END
>   CLASS
> EXPRESSION ([Visibility] > %priority%)
> STYLE
>   COLOR 158 196 255
>   MINSIZE 1
>   SIZE 3
>   MAXSIZE 6
> END
>   END
> END
>
>
> --
>
> Richard W. Greenwood
> www.greenwoodmap.com 
>


-- 
Richard W. Greenwood
www.greenwoodmap.com
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] using SCALETOKEN in an EXPRESSION

2022-11-10 Thread Eichner, Andreas - SID
According to RFC 86 SCALETOKENs are used to replace tokens inside a layer’s 
DATA statement - so it might simply not work within class expressions.
As a workaround you might use MINSCALEDENOM and MAXSCALEDENOM within CLASS.

Kind regards,
Andreas

-Ursprüngliche Nachricht-
Von: MapServer-users  Im Auftrag von 
Richard Greenwood
Gesendet: Donnerstag, 10. November 2022 03:00
An: mapserver 
Betreff: [MapServer-users] using SCALETOKEN in an EXPRESSION

Can anyone tell me what's wrong with my EXPRESSION below? I'm trying to filter 
features from the National Hydrology Dataset based on scale using SCALETOKEN 
and I can't seem to get it right. [Visibility] is a field in the data that 
suggests the scale at which a feature should be shown.

Thanks!

LAYER
  NAME "flowline"
  TYPE line
  DATA "shapefiles3857/nhd/flowline"
  SCALETOKEN
NAME "%priority%"
VALUES
  "0"   "0"
  "24000"   "24000"
  "5"   "5"
  "10"  "10"
  "25"  "25"
  "50"  "50"
  "100" "100"
  "200" "200"
  "500" "500"
END
  END
  CLASS
EXPRESSION ([Visibility] > %priority%)
STYLE
  COLOR 158 196 255
  MINSIZE 1
  SIZE 3
  MAXSIZE 6
END
  END
END


-- 

Richard W. Greenwood
www.greenwoodmap.com  


smime.p7s
Description: S/MIME cryptographic signature
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users