[mapserver-dev] A problem with RF109 in the pattern validation

Andrea Peri aperi2007 at gmail.com
Tue Mar 11 02:52:06 PDT 2014


Hi,

I have a pattern validation error from a my log-file:

[Tue Mar 11 10:25:01 2014].238129 msEvalRegex(): Regular expression error.
String failed expression test.
[Tue Mar 11 10:25:01 2014].238196 msValidateParameter(): Regular expression
error. Parameter pattern validation failed.
[Tue Mar 11 10:25:01 2014].238235 msEvalRegex(): Regular expression error.
String failed expression test.
[Tue Mar 11 10:25:01 2014].238244 msValidateParameter(): Regular expression
error. Parameter pattern validation failed.
[Tue Mar 11 10:25:01 2014].238276 msEvalRegex(): Regular expression error.
String failed expression test.

After some check I see that it come from a class definition (i put it in
this email)

But I don't understand why there is a pattern validation error in it.

I'm using the new master code, so I guess this is a change entered from the
RFC109, but reading the documentation this seem to be a bug.


    CLASS
      NAME 'Centri e Nuclei 2011'
      GROUP "label_only"
      MAXSCALEDENOM 5000100
      MINSCALEDENOM 1
      STYLE
        WIDTH 0.1
        SIZE 1
        # OUTLINECOLOR "#D0D0D0"
        OPACITY 100
        MAXSCALEDENOM 5000100
        MINSCALEDENOM 1
      END
      LABEL
        TEXT '[denom_loc]'
        #EXPRESSION ( ([area] > 13900000) AND ([centro_cap]=1) )
        EXPRESSION ( ("[denom_loc]" IN "Montalcino,Chiusi,Santa
Fiora,Viareggio,Arezzo,Prato,Firenze,Pisa,Pistoia,Lucca,Massa,Carrara,Volterra,Cortona,Castelnuovo
di Garfagnana,Barberino di
Mugello,Livorno,Grosseto,Siena,Montecatini,Empoli,Cecina,Poggibonsi,Poppi,Piombino,Portoferraio")
AND ([area]>450000) AND ("[codistat]" != "09051034"))
        COLOR "#000000"
        OUTLINECOLOR 255 255 255
        OUTLINEWIDTH 1
        MAXSCALEDENOM 5000000
        MINSCALEDENOM 500100
        MAXLENGTH 7
        WRAP ' '
        FONT "LiberationSans-Regular"
        TYPE truetype
        SIZE 6
        ALIGN center
        ANGLE 0
        STYLE
          GEOMTRANSFORM 'labelpoly'
          COLOR "#FFFFFF60"
          OFFSET 0 0
        END # STYLE
        POSITION cc
        PRIORITY 10
        MAXOVERLAPANGLE 180.0
        BUFFER 2
        FORCE OFF
        PARTIALS false
      END
      LABEL
        TEXT '[denom_loc]'
        EXPRESSION  ( [area] > 450000)
        COLOR "#000000"
        OUTLINECOLOR 255 255 255
        OUTLINEWIDTH 1
        MAXSCALEDENOM 500100
        MINSCALEDENOM 150100
        MAXLENGTH 7
        WRAP ' '
        FONT "LiberationSans-Regular"
        TYPE truetype
        SIZE 7
        ALIGN center
        ANGLE 0
        STYLE
          GEOMTRANSFORM 'labelpoly'
          COLOR "#FFFFFF60"
          OFFSET 0 0
        END # STYLE
        POSITION cc
        PRIORITY 10
        MAXOVERLAPANGLE 180.0
        BUFFER 2
        FORCE OFF
        PARTIALS false
      END
      LABEL
        TEXT '[denom_loc]'
        COLOR "#000000"
        OUTLINECOLOR 255 255 255
        OUTLINEWIDTH 1
        MAXSCALEDENOM 150100
        MINSCALEDENOM 1
        MAXLENGTH 7
        WRAP ' '
        FONT "LiberationSans-Regular"
        TYPE truetype
        SIZE 7
        ALIGN center
        ANGLE 0
        STYLE
          GEOMTRANSFORM 'labelpoly'
          COLOR "#FFFFFF60"
          OFFSET 0 0
        END # STYLE
        POSITION cc
        PRIORITY 10
        MAXOVERLAPANGLE 180.0
        BUFFER 2
        FORCE OFF
        PARTIALS false
      END
    END
  END


-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20140311/3a3c9670/attachment.html>


More information about the mapserver-dev mailing list