[mapserver-users] OSM mapfile

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Thu Feb 20 06:11:07 PST 2014


I imported osm to postgis using osm2pgsql and created the mapfile using 
this procedure.
https://github.com/mapserver/mapserver/wiki/RenderingOsmDataWindows#wiki-map-gen

I have problem loading placesX layers, I get this error:
[Thu Feb 20 08:59:32 2014].216997 msAddLabel(): General error message. 
msAddLabel error: missing style definition for layer 'places5'
[Thu Feb 20 08:59:32 2014].217065 msDrawMap(): Image handling error. 
Failed to draw layer named 'places5'.

I know that the mapfile generated is for mapserver 6.4 and I'm using 
6.1-dev. 
But the LABEL tags used in the mapfile are valid for mapserv 6.1.
LAYER
...
 LABELITEM 'name'
 CLASSITEM 'type'
 CLASS
  EXPRESSION 'country'
  LABEL
   FONT scb
   TYPE TRUETYPE
   ENCODING "utf-8"
   SIZE 8
   COLOR 100 100 100
   OUTLINECOLOR -1 -1 -1
   OUTLINEWIDTH 2
   WRAP ' '
   MAXLENGTH 8
   ALIGN CENTER
   BUFFER 4
   PARTIALS FALSE
   POSITION cc
  END
 END
 
Any idea why it doesn't work?

Thanks for your help
steve

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140220/ae318dc3/attachment.html>


More information about the mapserver-users mailing list