[mapserver-users] RE OSM mapfile (SOLVED)

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Thu Feb 20 07:46:44 PST 2014


SOLVEd, just found this
https://github.com/mapserver/basemaps/issues/9




Steve.Toutant at inspq.qc.ca@lists.osgeo.org 
Envoyé par : mapserver-users-bounces at lists.osgeo.org
2014-02-20 09:11

A
mapserver-users at lists.osgeo.org
cc

Objet
[mapserver-users] OSM mapfile









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 _______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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


More information about the mapserver-users mailing list