Re: [mapserver-users] MapServer 6.4 URL-Problem (Variable-Substitution)

2018-09-07 Thread Michael Smith
Mike,

 

In version 6 and above, you need to add a validation block for each 
substitution variable. 

 

https://mapserver.org/mapfile/validation.html

 

Mike

 

 

-- 

Michael Smith

Remote Sensing/GIS Center

US Army Corps of Engineers

 

 

From: mapserver-users  on behalf of 
"Elstermann, Mike" 
Date: Friday, September 7, 2018 at 10:16 AM
To: "'mapserver-users@lists.osgeo.org'" 
Subject: [mapserver-users] MapServer 6.4 URL-Problem (Variable-Substitution)

 

My problem in URLs with Variable-Substitution:

 
http://myserver?...='[bez]'='A1' OR '[bez]'='1:500'&… à 
correct Output (Map-Picture)
http://myserver?...=%27%5Bbez%5D%27%3D%27A1%27%20OR%20%27%5Bbez%5D%27%3D%271%3A500%27&…
 à incorrect Output (NO Map-Picture)
Error-Message: msValidateParameter(): Regular expression error. Parameter 
pattern validation failed.
 

In my MapFile:

CLASS

…

EXPRESSION (%druckvorschauclass%)

…

END

 

Using MapServer 6.4 (in 5.x it was OK)

 

Any ideas?

 

THX!

mikeE.

 

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

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

Re: [mapserver-users] MapServer 6.4 URL-Problem (Variable-Substitution)

2018-09-07 Thread WhereGroup
Hallo Mike,

kein Validation-Block? falscher Ausdruck im Validation-Block? Falsche
Stelle?

> As of MapServer 5.4.0 the preferred mechanism is a VALIDATION block in the 
> LAYER definition. This is only slightly different from the older METADATA 
> mechanism. VALIDATION blocks can be used with CLASS, LAYER and WEB.



Gruß, Jörg

Am 07.09.2018 um 15:59 schrieb Elstermann, Mike:
> My problem in URLs with Variable-Substitution:
> 
>  
> 
> 1.   http://myserver?...='[bez]'='A1' OR
> '[bez]'='1:500'&… à correct Output (Map-Picture)
> 
> 2.  
> http://myserver?...=%27%5Bbez%5D%27%3D%27A1%27%20OR%20%27%5Bbez%5D%27%3D%271%3A500%27&…
> à incorrect Output (NO Map-Picture)
> Error-Message: msValidateParameter(): Regular expression error.
> Parameter pattern validation failed.
> 
>  
> 
> In my MapFile:
> 
> CLASS
> 
> …
> 
> EXPRESSION (%druckvorschauclass%)
> 
>     …
> 
>     END
> 
>  
> 
> Using MapServer 6.4 (in 5.x it was OK)
> 
>  
> 
> Any ideas?
> 
>  
> 
> THX!
> 
> mikeE.
> 
>  
> 
> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
> 



Viele Grüße,
Jörg Thomsen

-- 

**
 FOSS Academy Sommerschule 2018
 Alles Wichtige zur Erstellung einer GDI in nur 5 Tagen erlernen!
 https://www.foss-academy.com/kompaktkurse
 *


Jörg Thomsen
WhereGroup GmbH & Co. KG
Gillweg 3
14193 Berlin
Germany

Fon: +49 (0)30 / 5130 278 74
Fax: +49 (0)30 / 89 09 53 21

joerg.thom...@wheregroup.com
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
---
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
---
Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users