[mapserver-users] Raster layer as a way of branding
Jeff McKenna
jmckenna at gatewaygeomatics.com
Fri Jan 22 13:47:44 PST 2010
Lime, Steve D (DNR) wrote:
> Sure, that's possible too. Just use the image in question as a symbol (e.g. SYMBOL 'mylogo.png') and the same
> strategy should work.
>
> # place a logo in the lower right corner
> LAYER
> NAME 'logo'
> TYPE POINT
> STATUS DEFAULT
> TRANSFORM LR
> FEATURE POINTS -10 10 END END
> CLASS
> STYLE SYMBOL 'mylogo.png' END
> END
> END
>
> Or something close to this...
>
> Steve
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka
> Sent: Friday, January 22, 2010 3:11 PM
> To: Fawcett, David (MPCA); Frost89; mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Raster layer as a way of branding
>
> Hi,
>
> But I understood that the aim is to burn a logo from an image file in png format into output map, not a plain text annotation. Is that possible?
>
> -Jukka Rahkonen-
>
> Fawcett, David wrote:
>
>
>> This example should help: http://mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map
>
>> David.
>
>> -----Original Message-----
>> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frost89
>> Sent: Friday, January 22, 2010 3:48 AM
>> To: mapserver-users at lists.osgeo.org
>> Subject: [mapserver-users] Raster layer as a way of branding
>
>
>> Hi
>> I was wondering if it's possible to generate a map with a raster layer/png
> in the bottom right corner? As a way of branding the map with our company
> logo.
> /Kristian
Steve beat me to it, but I would follow the FAQ example and just add in
a symbol:
LAYER
NAME "copyright"
STATUS ON
TYPE point
TRANSFORM ll #set the image origin to be lower left
FEATURE
POINTS
60 -10 #set the offset from lower left position in pixels
END
#TEXT "� xyz company 2006" #this is your displaying text
END
CLASS
STYLE
SYMBOL '../etc/mylogo.gif'
END
END
UNITS PIXELS #sets the units for the feature object
END
-jeff
--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/
More information about the MapServer-users
mailing list