[mapserver-users] mapserver publish road

thomas bonfort thomas.bonfort at gmail.com
Tue Jul 19 00:14:36 PDT 2011


I don't think there's a way to do this, as when rendering roads the
mapserver method is usually what is desired.
You might want to file an enhancement ticket so that this behavior can be
configured with a mapfile keyword.
On a side note, cartolines in mapserver are deprecated since version 5.0 and
completely unsupported sincce 6.0, so you should not be using them for a new
project: use the agg outputformat and STYLE->WIDTH for thick lines.

--
thomas

2011/7/19 赫玄惠 <xiaoshitou1986126 at 126.com>

> I encounter a question. use one  same shape file, when I use it in
> mapserver it like
>
> but in udig it like
>
> when two street intersect together, udig can paint map with the black
> border,but mapserver can't. Anyone know why?
> my mapfile is this:
> MAP
>   SIZE 800 450
>   EXTENT -200 0 200 100
>   IMAGECOLOR 180 180 250
>   UNITS DD
>   debug 5
>   CONFIG "MS_ERRORFILE" "\ms4w\tmp\ms_error.txt"
>   FONTSET "D:\ms4w\apps\fonts\fonts.list"
> PROJECTION
>     "init=epsg:4326"
> END
> OUTPUTFORMAT
>     NAME png24#AGG
>     DRIVER "GD/PNG" #AGG/PNG*    IMAGEMODE RGB
>     MIMETYPE IMAGE/PNG
>     EXTENSION PNG
>     #FORMATOPTION TRANSPARENT=ON
>     #FORMATOPTION INTERLANCE=OFF
> END
> IMAGETYPE png24 #AGG
> WEB
>     IMAGEPATH "\ms4w\Apache\htdocs\tmp\"
>     IMAGEURL "\tmp\"
> END
>
> SYMBOL
>   NAME 'cartoline'
>   TYPE CARTOLINE
>   LINECAP  butt
>    LINEJOIN  bevel
>    LINEJOINMAXSIZE 3
> END
>
> LAYER
>     NAME 01
>     TYPE LINE
>     debug 5
>     STATUS on
>     TRANSPARENCY alpha
>     CONNECTIONTYPE postgis
>     CONNECTION "user=* dbname=* host=* port=* password=* "
>     DATA "the_geom from *** using unique gid"
>     processing "slose_connection=defer"
>     DUMP TRUE
>     CLASS
>       STYLE
>            COLOR 0 0 0
>            SYMBOL 'cartoline'
>            ANTIALIAS TRUE
>         SIZE 10
>         END
>          STYLE
>            COLOR 255 255 0
>            SYMBOL 'cartoline'
>            ANTIALIAS TRUE
>  &nbs p;      SIZE 8
>         END
>     END
> END
> END
>
> *
>
>
>
> _______________________________________________
> 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/20110719/4183ca4d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 22.png
Type: image/png
Size: 3831 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110719/4183ca4d/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 11.png
Type: image/png
Size: 688 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110719/4183ca4d/attachment-0001.png>


More information about the MapServer-users mailing list