[mapserver-dev] mapserver and KMZ

stefano bonnin stefano.bonnin at comai.to
Thu Jul 28 05:51:26 EDT 2011


Hi all, I'm trying to use the KMZ output in my mapfile but I receive strange
errors about CLASS EXPRESSIONS.
My map file look like this:

.....
MAP
  EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34
  FONTSET "fonts/fonts.list"
  IMAGECOLOR 255 255 255
  TRANSPARENT ON
  IMAGETYPE kml
  SYMBOLSET "symbols/symbols.sym"
  SHAPEPATH "../shp"
  STATUS ON
  UNITS DD

  OUTPUTFORMAT
        NAME kml
        DRIVER "KML"
        MIMETYPE "application/vnd.google-earth.kml+xml"
        IMAGEMODE RGB
        EXTENSION "kml"
        FORMATOPTION 'ATTACHMENT=sky.kml'
  END

  OUTPUTFORMAT
  NAME kmz
  DRIVER "KMZ"
  MIMETYPE "application/vnd.google-earth.kmz"
  IMAGEMODE RGB
  EXTENSION "kmz"
  FORMATOPTION 'ATTACHMENT=sky.kmz'  #name of kmz file returned
  END


LAYER
  NAME "tcdc"
  STATUS ON
  TYPE POLYGON
  CONNECTIONTYPE POSTGIS
  CONNECTION "host=******* port=****** dbname=****** user=******"
  DATA "the_geom from mytable"

  OPACITY 75

    PROJECTION
      "init=epsg:3395"
    END

  CLASSITEM "cnuv"

  CLASS
      EXPRESSION ([cnuv]>=30 and [cnuv]<50)
      STYLE
        COLOR "#ffffff"
        SYMBOL 0
        WIDTH 1
      END
  END

...
...

[Thu Jul 28 11:33:36 2011].485177 yyparse(): Expression parser error. syntax
error
[Thu Jul 28 11:33:36 2011].485210 msEvalExpression: Expression parser error.
Failed to parse expression: [cnuv]>=30 and [cnuv]<50


Can you help me?
I'm using current mapserver 6.1dev (and tryed with 6.0.1 also)


Thanks in advance.


-- 
*Stefano Bonnin*
Comai Torino S.r.L
Via livorno, 60 - 10144 Torino
tel. +39 011 22 58 351
fax. +39 011 22 58 359
email: stefano.bonnin at comai.to
web: www.comai.to <http://goog_2122000257>  <http://www.comai.to>

*Informativa Art. 13 D.Lgs N° 196 del 30/06/2003*
Qualora questa e-mail risulti inviata ad un destinatario errato, Vi
invitiamo a distruggerla immediatamente. Ai sensi del D.Lgs 30/06/03 n. 196
(c.d. Testo Unico sulla Privacy) e seguenti regolamenti, si dovrà dare
comunicazione dell'errata ricezione all' indirizzo e-mail del mittente,
nonchè provvedere alla distruzione del documento erroneamente ricevuto. Il
mittente non è responsabile per dati comunicati e conosciuti contravvenendo
a questo invito. Il presente documento ha carattere informale, non impegna
la Società e non costituisce corrispondenza ufficiale della stessa.Il suo
contenuto, per avere valore ai fini contrattuali, dovrà essere oggetto di
corrispondenza regolarmente firmata, da inoltrare secondo i canoni
tradizionali

This e-mail is confidential and may also contain privileged information. If
you are not the intended recipient you are not authorised to read, print,
save, process or disclose this message. If you have received this message by
mistake, please inform the sender immediately and delete this e-mail, its
attachments and any copies. Any use, distribution, reproduction or
disclosure by any person other than the intended recipient is strictly
prohibited and the person responsible may incur penalties.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110728/cbeea53a/attachment.html


More information about the mapserver-dev mailing list