[mapserver-users] line issue in mapserver 6
Richard Greenwood
richard.greenwood at gmail.com
Sun Feb 17 20:30:01 PST 2013
On Thu, Feb 14, 2013 at 7:49 AM, Murat Beyhan <muratbeyhan28 at gmail.com>wrote:
> Dear All,
>
> I have installed mapserver 6.0.1 on ubuntu 12.10 and I tried to draw map
> which is including some line and polygon layers.
> By the way I have been using mapserver 5.4.2 for a long time.
>
> Same map file which is working to draw map using mapserver 5.4.2 working
> well under mandriva 2010.
> When I try to draw it on new Mapserver the line looking like a point on
> the map even if its shapefile is line data.
> BUt for old mapsever it seems line without any problem.
>
> When I try to find reason I understood style and symbol has minor change.
>
> Then I would like to solve my problem making some test.
>
> Then I have found a solution but it is little bit strange.
> like this
>
> for old version of mapserver layers as follows in the map and it seems
> like a point on the map when I zoomed much.
>
>
> LAYER
> NAME Faults
> TYPE line
> DATA faults_line
> STATUS on
> CLASS
> SYMBOL "cline"
> SIZE 1
> COLOR 200 10 0
> END
> END
>
> and symbol cline as follows
>
> SYMBOL
> NAME "cline"
> TYPE line
> POINTS 0 0 END
> FILLED TRUE
> END
> these are workng for the mapserver 5.4.2 well.
>
> But for Mapserver 6.0 it look like a points instead of line on the map.
> Then I have used style and I modified map file as follows
>
> LAYER
> TYPE line
> STATUS on
> CLASS
> STYLE
> WIDTH 2.0
> COLOR 200 10 20
> END
> END
>
You need one more "END" above so that it looks like:
LAYER
TYPE line
STATUS on
CLASS
STYLE
WIDTH 2.0
COLOR 200 10 20
END # style
END # class
END #layer
>
> LAYER
> NAME Faults
> DATA fault_lines
> STATUS on
> END
>
You need a CLASS and a STYLE in your Faults layer above.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130217/84c7d1b0/attachment.htm>
More information about the MapServer-users
mailing list