[MAPSERVER-USERS] Getting a vector layer to "fill in" via PostGIS connection

SUSANNE susanne.kalliany at tefis.at
Fri Aug 1 15:13:31 EDT 2008


"I would remove comment of #color 255 0 0 and do like this:

....
  CONNECTION "user=user dbname=db host=localhost port=5432 password=pass"                                      
  DATA "the_geom from layer"
  CLASS
    STYLE
        SIZE 20
        OUTLINECOLOR 255 0 0
         COLOR 255 0 0
         WIDTH 10
    END    # style
 END    # class

Color 255 0 0 is  bright red; if you want to have ligther color you have to
increase both other colors
e.g. 255 100 100 or 255 150 150.
I hope I could help, Susanne Kalliany"


dnbphysicist wrote:
> 
> I have a vector layer which is a table in my postgres database and I want
> the MapServer to draw the outlines and also fill in the background with a
> slighly lighter color. I get all the details of the outlines to come out
> however the background is completely transparent. Does anyone know how to
> do
> this?
> 
> Here is the layer in my Mapfile:
> 
>  LAYER
>   # name of layer
>   NAME "namespace:layer"
>   GROUP "Group"
> 
>   # what type of data is this?
>   TYPE POLYGON
> 
>   # always returned with interface
>   STATUS ON
> 
>   #TRANSPARENCY 100
> 
>   CONNECTIONTYPE postgis
> 
>   CONNECTION "user=user dbname=db host=localhost port=5432
> password=pass"
>   DATA "the_geom from layer"
>   CLASS
>     STYLE
>         SIZE 20
>         OUTLINECOLOR 255 0 0
>             #COLOR 255 0 0
>          #WIDTH 10
>     END
>     STYLE
>         SIZE 20
>          BACKGROUNDCOLOR 0 0 255
>     END
>    END
>  END
> 
> THANKS!
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Getting-a-vector-layer-to-%22fill-in%22-via-PostGIS-connection-tp18774936p18780951.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the mapserver-users mailing list