[mapserver-users] WMS layers order and copyright

Paco Regodón mapserver at meteologica.es
Wed Jun 9 07:50:15 EDT 2010


It worked! Thanks!

I thought POSTLABELCACHE was only for scalebar since documentations says 
"For use with embedded scalebars only."

You have saved me a lot of headaches.

Regards,

Paco



On 07/06/10 20:43, thomas bonfort wrote:
> POSTLABELCACHE at the layer level is the keyword you are looking for.
>
> regards,
> thomas
>
> On Mon, Jun 7, 2010 at 19:52, Rahkonen Jukka<Jukka.Rahkonen at mmmtike.fi>  wrote:
>    
>> Hi,
>>
>>
>>
>> This is what I have been using:
>>
>>
>>
>> LAYER
>>
>>    NAME "copyright"
>>
>>    METADATA
>>
>>      "wms_title"     "copyright"
>>
>>    END
>>
>>    STATUS DEFAULT
>>
>>    REQUIRES "[aerial_images]" # this text appears always with aerial images
>> in WMS
>>
>>    TYPE ANNOTATION
>>
>>    TRANSFORM ll #set the image origin to be lower left
>>
>>    FEATURE
>>
>>      POINTS
>>
>>        85 -8 #set the offset from lower left position in pixels
>>
>>      END
>>
>>      TEXT " © 2010 aerial image provider"  #this is your displaying text
>>
>>    END
>>
>>    CLASS
>>
>>      LABEL #defines the font, colors etc. of the text
>>
>>        FONT "arial"
>>
>>        TYPE TRUETYPE
>>
>>        SIZE 8
>>
>>        BUFFER 1
>>
>>        COLOR 200 100 50
>>
>>        BACKGROUNDCOLOR 255 255 255
>>
>>        FORCE TRUE
>>
>>
>>
>>      END
>>
>>    END
>>
>>    UNITS PIXELS #sets the units for the feature object
>>
>> END
>>
>> LAYER
>>
>>    NAME "copyright2"
>>
>>    METADATA
>>
>>      "wms_title"     "copyright2"
>>
>>    END
>>
>>    STATUS DEFAULT
>>
>>    REQUIRES "![aerial_images]"    #this layer appears with all WMS layers
>> except aerials
>>
>>    TYPE ANNOTATION
>>
>>    TRANSFORM lr #set the image origin to be lower right
>>
>>    FEATURE
>>
>>      POINTS
>>
>>        -75 -10 #set the offset
>>
>>      END
>>
>>      TEXT " © 2010 raster map provider" #this is your displaying text
>>
>>    END
>>
>>    CLASS
>>
>>      LABEL #defines the font, colors etc. of the text
>>
>>        FONT "arial"
>>
>>        TYPE TRUETYPE
>>
>>        SIZE 8
>>
>>        BUFFER 1
>>
>>        COLOR 200 100 50
>>
>>        BACKGROUNDCOLOR 255 255 255
>>
>>        FORCE TRUE
>>
>>
>>
>>      END
>>
>>    END
>>
>>    UNITS PIXELS #sets the units for the feature object
>>
>> END
>>
>>
>>
>>
>>
>> -Jukka Rahkonen-
>>
>>
>>
>> ________________________________
>>
>> Lähettäjä: mapserver-users-bounces at lists.osgeo.org
>> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta
>> mapserver at meteologica.es
>> Lähetetty: 7. kesäkuuta 2010 20:19
>> Vastaanottaja: mapserver-users at lists.osgeo.org
>> Aihe: [mapserver-users] WMS layers order and copyright
>>
>>
>>
>> Hi,
>>
>> How can i force our copyright-logo layer to appear above the other layers
>> when serving WMS? Our logo/copyright layer is the last one in the mapfile,
>> and we're using "STATUS DEFAULT" but it seems mapserver ignores order and
>> draws this layer below the others.
>>
>> We have no problems when caling mapserser cgi directly with its own
>> protocol, only when calling it using wms parameters.
>>
>> Is it a bug?
>>
>> Thanks,
>>
>> Paco
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>>      
>    


More information about the mapserver-users mailing list