Polygon outline width

Bart van den Eijnden (OSGIS) bartvde at OSGIS.NL
Mon Jul 30 09:01:08 EDT 2007


Try and leave out the OUTLINECOLOR altogether.

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Gilles Bassi�re <gilles.bassiere at MAKINA-CORPUS.COM>
Naar: MAPSERVER-USERS at LISTS.UMN.EDU <MAPSERVER-USERS at LISTS.UMN.EDU>
Onderwerp: Re: [UMN_MAPSERVER-USERS] Polygon outline width
Datum: 30/07/07 10:58

> Here is my mapfile. The complete Mapfile has 8 other layers but I 
> removed them in order to make it easy to read, anyway all layers have 
> the same properties (only the color change).
> I also tried to set the OUTLINECOLOR property at the CLASS level and to 
> use the value -1 0 0 but the outline is still not transparent.
> 
> # WGS 84 (epsg:4326)
> MAP
>    NAME                &quot;Test&quot;
>    IMAGETYPE           &quot;png&quot;
>    EXTENT              3.3 50.75 7.25 53.6
>    IMAGECOLOR          255 255 255
>    FONTSET             &quot;/home/gba/public_html/fonts.txt&quot;
>    SYMBOLSET           &quot;/home/gba/public_html/symbols.sym&quot;
>    UNITS               dd
> 
>    PROJECTION
>       &quot;init=epsg:4326&quot;
>    END
> 
>    WEB
>       IMAGEPATH        &quot;/home/gba/public_html/img/&quot;
>       IMAGEURL         &quot;/img/&quot;
>       METADATA
>          &quot;wms_title&quot;            &quot;Road map&quot;
>          &quot;wms_onlineresource&quot;  
&quot;http://localhost/~gba/cgi-bin/test.cgi?&quot;
>          &quot;wms_srs&quot;              &quot;epsg:4326&quot;
>       END
>    END
> 
>    # Legend
>    LEGEND
>       KEYSIZE          10 5
>       LABEL
>          TYPE          bitmap
>          SIZE          medium
>          COLOR         0 0 0
>          PARTIALS      false
>       END
>       STATUS           on
>    END
> 
>    # Scale bar
>    SCALEBAR
>       IMAGECOLOR       255 255 255
>       LABEL
>          COLOR         0 0 0
>          SIZE          tiny
>       END
>       STYLE            1
>       SIZE             50 2
>       COLOR            0 0 0
>       UNITS            meters
>       INTERVALS        2
>       STATUS           on
>    END
> 
>    OUTPUTFORMAT
>       NAME             &quot;png&quot;
>       DRIVER           &quot;GD/PNG&quot;
>       MIMETYPE         &quot;image/png&quot;
>       IMAGEMODE        &quot;rgba&quot;
>       EXTENSION        &quot;png&quot;
>       FORMATOPTION     &quot;transparent=on&quot;
>       FORMATOPTION     &quot;interlace=on&quot;
>    END
> 
>    
> ##########################################################################
>    # Start of LAYER Definitions 
> ---------------------------------------------
>    
> ##########################################################################
> 
>    # LAYER 9 : water -------------------------------------
>    LAYER
>       NAME             &quot;water&quot;
>       GROUP            &quot;background&quot;
>       CONNECTIONTYPE   postgis
>       CONNECTION       &quot;host=localhost dbname=test user=test 
> password=xxxxx port=5432&quot;
>       DATA             &quot;wkb_geometry FROM water&quot;
>       STATUS           on
>       TYPE             polygon
>       TRANSPARENCY     alpha
> 
>       PROJECTION
>          &quot;init=epsg:4326&quot;
>       END
>      
>       CLASS
>          STYLE
>             COLOR         153 179 204
>             OUTLINECOLOR  -1 -1 -1
>             ANTIALIAS     true
>          END
>       END
> 
>       METADATA
>          &quot;wms_title&quot;   &quot;Water bodies&quot;
>          &quot;wms_srs&quot;     &quot;EPSG:4326&quot;
>          &quot;wms_extent&quot;  &quot;3.3 50.75 7.25 53.6&quot;
>       END
>    END
> END
> 
> # test URL (GetMap) : 
>
http://localhost/~gba/cgi-bin/test.cgi?service=wms&amp;version=1.1.1&amp;request=getmap&amp;layers=background&amp;styles=&amp;srs=epsg:4326&amp;width=800&amp;height=600&amp;format=image/png&amp;bbox=3.358400,50.750400,7.227600,53.555000
> &gt; Hi Gilles
> &gt;
> &gt; How does sour map-file look? OUTLINECOLOR -1 0 0 definitely should
work.
> &gt;
> &gt; Mit freundlichem Gruss / Best Regards
> &gt; Flavio Hendry
> &gt;
> &gt; ----------------------------------------------------------------
> &gt; TYDAC Web-Site:  http://www.tydac.ch
> &gt; TYDAC MapServer: http://www.mapserver.ch
> &gt; ----------------------------------------------------------------
> &gt; ############      Mit freundlichen Gruessen / Kind Regards
> &gt; ############             mailto:flavio at tydac.ch
> &gt; ############         TYDAC AG - http://www.tydac.ch
> &gt; ####    ####        Geographic Information Solutions
> &gt; ####    ####         Luternauweg 12 -- CH-3006 Bern
> &gt; ############   Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860
> &gt; ----------------------------------------------------------------
> &gt;
> &gt;
> &gt; -----Original Message-----
> &gt; From: Gilles Bassi�re &lt;gilles.bassiere at makina-corpus.com&gt;
> &gt; To: Flavio Hendry &lt;flavio at tydac.ch&gt;
> &gt; Cc: MAPSERVER-USERS at LISTS.UMN.EDU
> &gt; Date: Mon, 30 Jul 2007 11:58:00 +0200
> &gt; Subject: Re: [UMN_MAPSERVER-USERS] Polygon outline width
> &gt;
> &gt;   
> &gt;&gt; Hi Flavio
> &gt;&gt;
> &gt;&gt; Thanks for your help. Unfortunately, it has no effect on my map.
I
> &gt;&gt; tried 
> &gt;&gt; to set this value for OUTLINE in the CLASS element, then in the
STYLE
> &gt;&gt; element but rivers still appear very thick on my map when the
scale
> &gt;&gt; in 
> &gt;&gt; large... Actually, the same map is produced with OUTLINE -1 0 0
or 
> &gt;&gt; without. =(
> &gt;&gt;
> &gt;&gt; As explained in the FAQ, I tried to set up a circle symbol but it
> &gt;&gt; seems 
> &gt;&gt; to work only for true lines, not for polygon outlines.
> &gt;&gt;
> &gt;&gt; Any other idea ?
> &gt;&gt;
> &gt;&gt; Gilles
> &gt;&gt;     
> &gt;&gt;&gt; Hi Gilles
> &gt;&gt;&gt;
> &gt;&gt;&gt; just set the OUTLINECOLOR to -1 0 0.
> &gt;&gt;&gt;
> &gt;&gt;&gt; Mit freundlichem Gruss / Best Regards
> &gt;&gt;&gt; Flavio Hendry
> &gt;&gt;&gt;
> &gt;&gt;&gt;
----------------------------------------------------------------
> &gt;&gt;&gt; TYDAC Web-Site:  http://www.tydac.ch
> &gt;&gt;&gt; TYDAC MapServer: http://www.mapserver.ch
> &gt;&gt;&gt;
----------------------------------------------------------------
> &gt;&gt;&gt; ############      Mit freundlichen Gruessen / Kind Regards
> &gt;&gt;&gt; ############             mailto:flavio at tydac.ch
> &gt;&gt;&gt; ############         TYDAC AG - http://www.tydac.ch
> &gt;&gt;&gt; ####    ####        Geographic Information Solutions
> &gt;&gt;&gt; ####    ####         Luternauweg 12 -- CH-3006 Bern
> &gt;&gt;&gt; ############   Tel +41 (0)31 368 0180 - Fax +41 (0)31 368
1860
> &gt;&gt;&gt;
----------------------------------------------------------------
> &gt;&gt;&gt;
> &gt;&gt;&gt;
> &gt;&gt;&gt; -----Original Message-----
> &gt;&gt;&gt; From: Gilles Bassi�re
&lt;gilles.bassiere at MAKINA-CORPUS.COM&gt;
> &gt;&gt;&gt; To: MAPSERVER-USERS at LISTS.UMN.EDU
> &gt;&gt;&gt; Date: Fri, 27 Jul 2007 15:09:22 +0200
> &gt;&gt;&gt; Subject: [UMN_MAPSERVER-USERS] Polygon outline width
> &gt;&gt;&gt;
> &gt;&gt;&gt;   
> &gt;&gt;&gt;       
> &gt;&gt;&gt;&gt; Hi there,
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt; I wonder whether it's possible to have no outline for a
polygon.



More information about the mapserver-users mailing list