[mapserver-users] Issues with legend in csharp

2008-04-15 Thread KMR - Kåre Mølgård Rasmussen
Hi list

 

I´m currently working with MapServer in a Visual studio 2005 project. When I 
try to create a legend, MINSCALE and MAXSCALE works just fine with mapserver 
4.10.1. When I try a similar project with mapserver 5.0, the legend is empty if 
MINSCALE and MAXSCALE is used - it doesn´t matter whether it´s on LAYER or on 
CLASS. The funny thing is, It works with Java. 

 

Has anyone encountered a similar problem?  

 

TIA

/Kaare

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


[mapserver-users] Symbology rotation (again)

2008-04-04 Thread KMR - Kåre Mølgård Rasmussen
Hi list

 

I´ve recently posted a question regarding symbology rotation. I´ve got two 
great replies suggesting 

1)  Upgrade mapserver (I was running 4.10)

2)  Implement angleitem in a STYLE definition

 

I´ve done both, and when I run mapserv.exe with -v as argument, version 5.0.2 
is returned. But when I try to display the map, mapserver fails with the 
following error:

Error: loadStyle(): Unknown identifier. Parsing error near (ANGLEITEM):(line 
3328)

java.lang.UnknownError: loadStyle(): Unknown identifier. Parsing error near 
(ANGLEITEM):(line 3328)

 

The CLASS/STYLE looks like this

  CLASSITEM  TYPE

  CLASS   

 EXPRESSION LOCK 

 STYLE

   COLOR 192 192 192 

   SYMBOL WATER_L 

   SIZE 10

   ANGLEITEM LCK_ANGLE #column contains float values

 END

  END

 

Any suggestions to this error?

 

TIA

/Kaare

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


[mapserver-users] symbology rotation

2008-04-01 Thread KMR - Kåre Mølgård Rasmussen
Hi list (sorry if it is reposted - I´m not sure, if the first mail got around)

 

Currently I´m using mapserver 4.10 to display tab-files. Due to the fact, that 
I´m unable to get mapserver to display the right symbol (I use my own true type 
font) 

I´ve mapped the neseccary symbols like this

 

SYMBOL

  NAME mysymbL 

  TYPE TRUETYPE

  FONT mytruetype

  FILLED true

  ANTIALIAS true

  CHARACTER L

END

 

Then  in the different layer definitions I do like this:

LAYER

  NAME Water 

  

  TYPE POINT

  STATUS OFF

  CONNECTIONTYPE OGR   

  CONNECTION /.../water.tab

  METADATA

 themename Water

  END



  TOLERANCEUNITS meters

  TOLERANCE 4

  TEMPLATE dummy.html  

 

CLASSITEM W_TYPE

CLASS   

   EXPRESSION waterL 

   COLOR 0 0 255 

   SYMBOL mysymbL 

   SIZE 1

END

END

 

My problem is that MapServer ignores the symbology angle used in the tab file. 
Does anyone have any suggestion to this problem

 

TIA

Kaare

 

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