EXPRESSION ([Bev_class]=1)
Leopold Schefcik (MULTIMEDIAPLAN.AT)
leopold.schefcik at MULTIMEDIAPLAN.AT
Tue Sep 6 04:50:06 PDT 2005
Hi, I'd like to show a layer (polygones) with the population density in 5
clases
(in different colors).
I made the map file like in centrope_wms_bevdichte_2.map in the attachement
is shown. e.g. with this:
CLASS # Low Density
MAXSCALE 120000
MINSCALE 500
EXPRESSION ([Bev_class]=1) #if it is a string ('[FIELD]'='value')
SYMBOL 1
COLOR 248 147 147
SIZE 1
END
CLASS # High Density
MAXSCALE 120000
MINSCALE 500
EXPRESSION ([Bev_class]=2)
SYMBOL 1
COLOR 249 36 36
SIZE 1
END
But I only get this message (when I am using a relativ SHAPEPATH):
msDrawMap():Failed to draw layer named `Bev_Density'.
or no message and no layer with an absolute SHAPEPATH.
Someone has an idea about this?
Best regarts
Leopold
CapabilitiesRequest:
http://213.47.127.15:8081/cgi-bin/mapserv.exe?MAP=/ms4w/apps/maplab-2.2/tuto
rial/centrope_wms_bevdichte_2.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapab
ilities
-----Ursprüngliche Nachricht-----
Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Im
Auftrag von Michael Schulz
Gesendet: Dienstag, 30. August 2005 13:40
An: MAPSERVER-USERS at LISTS.UMN.EDU
Betreff: Re: [UMN_MAPSERVER-USERS] 3 little Questions
Hi Leopold,
Q1: you will need to use a style that uses a vector symbol, e.g.
SYMBOL
NAME "circle"
TYPE ellipse
FILLED true
POINTS
1 1
END
END
then you can use the SIZE parameter in the mapfile on that symbol.
Q2: Are you sre mapserver finds your shapefile in ./data? Did you try to
use an absolute path to your data directory?
Q3: Not sure, but did you try using a 24-bit output format, e.g. png24 ?
Cheers, Michael
Leopold Schefcik (MULTIMEDIAPLAN.AT) schrieb:
>
> Hi list,
>
> Question 1 (of 3):
> maybe a simple question: How in general can I change the width of a
> line(vectordata)?
>
> Maybe not with 'SIZE' because regardless of which SIZE 1 or SIZE 50 or
SIZE
> 100 there is allways a fine line.
>
> CLASS
> NAME "XC_Rivers"
> STYLE
> SYMBOL 0
> COLOR 72 0 254
> SIZE 100
> MINSIZE 1
> MAXSIZE 100
> END
> END
>
> ---------------------------------------
> Question 2 (of 3):
> I'd like to show a layer (polygones) with the population density in 5
clases
> (in different colors).
>
> I made the map file like in centrope_wms_bevdichte_2.map in the
attachement
> is shown. e.g. with this:
>
> CLASS # Low Density
> MAXSCALE 120000
> MINSCALE 500
> EXPRESSION ([Bev_class]=1) #if it is a string ('[FIELD]'='value')
> SYMBOL 1
> COLOR 248 147 147
> SIZE 1
> END
>
> CLASS # High Density
> MAXSCALE 120000
> MINSCALE 500
> EXPRESSION ([Bev_class]=2)
> SYMBOL 1
> COLOR 249 36 36
> SIZE 1
> END
>
> But I only get this message:
> msDrawMap():Failed to draw layer named `Bev_Density'.
>
> Someone has an idea about this?
> --------------------------------------------
>
> Question 3 (of 3):
> I have a satellite tif for my background. It is in color. But in my client
> it is only shown in black and white.
>
> Do I have to change some command line here?
> (map file for satellite picture is also in attachement:
> centrope_wms_sat.map)
>
> ---------------------------------------------
>
> Thanks a lot for everybody, who is trying to help me here a little bit.
>
> Best regards,
> Leopold
>
>
>
>
--
-----------------------------------------------------------
Michael Schulz mschulz at webgis.de
in medias res Gesellschaft für Informationstechnologie mbH
In den Weihermatten 66 Tel +49 (0)761 556959-5
79108 Freiburg Fax +49 (0)761 556959-6
www.webgis.de / www.zopecms.de
-----------------------------------------------------------
NEU ++ UMN MapServer Hosting ++ http://www.webgis.de ++ NEU
-----------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: centrope_wms_bevdichte_2.map
Type: application/octet-stream
Size: 2775 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050906/ae69262e/attachment.obj>
More information about the MapServer-users
mailing list