Re: [mapserver-users] Adding a logo & attribution

2016-02-17 Thread Rahkonen Jukka (MML)
Hi,

For me the threshold of making PR is high but I have almost no threshold at all 
with the mailing list which is easy to notice from the number of mails and 
their grammatical quality. I hope the facts are usually right and here comes my 
improved "copyright" layer which I just tested to work with MS4W 3.1.1. 
Enhancements:

1) 
REQUIRES "[poly]"
Forces the copyright text to draw always when layer "poly" is requested but not 
otherwise. Makes is possible to show different copyrights for the layers. With 
offsets you can arrange place for a few different copyrights on your map.

2) 
METADATA
  "wms_enable_request" "!GetCapabilities GetMap"
END
This metadata block is hiding the layer from WMS GetCapabilities. Otherwise WMS 
clients will show "copyright" as a normal selectable layer which is annoying.

3) MS4W does not deliver fonts so I commented the "times" font out.



LAYER
  NAME "copyright"
  STATUS DEFAULT
  TYPE point
  TRANSFORM ll # set the image origin to be lower left
  UNITS PIXELS # sets the units for the feature object
  REQUIRES "[poly]"
  METADATA
  "wms_enable_request" "!GetCapabilities GetMap"
  END
  FEATURE
POINTS
  60 -10# the offset (from lower left) in pixels
END # Points
TEXT "© xyz company 2006"  # this is your displaying text
  END # Feature
  CLASS
STYLE   # has to have a style
END # style
LABEL   # defines the font, colors etc. of the text
 # FONT "times"
 # TYPE truetype
  SIZE 8
  BUFFER 1
  COLOR 0 0 0
  FORCE true
  STYLE
GEOMTRANSFORM "labelpoly"
COLOR 255 255 255  # white
  END # Style
END # Label
  END # Class
END # Layer


-Jukka Rahkonen-

Jeff McKenna wrote:
 
> On 2016-02-12 10:55 PM, Brent Wood wrote:
>> Hi,
>>
>>
>> What is the recommended way to add a logo & text attribution clause in 
>> the bottom right corner of a mapserver WMS service?
>>
>>
>> Thanks
>>
>>
>> Brent Wood
>>
>> Programme leader: Environmental Information Delivery NIWA
>> DDI:  +64 (4) 3860529
>>
>>

> This is documented in the "FAQ", but if you find that it needs updating 
> please submit a documentation pull request: 
> http://www.mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map

> (2006, ha, I'm old)

-jeff



-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Adding a logo & attribution

2016-02-17 Thread Jeff McKenna

On 2016-02-12 10:55 PM, Brent Wood wrote:

Hi,


What is the recommended way to add a logo & text attribution clause in
the bottom right corner of a mapserver WMS service?


Thanks


Brent Wood

Programme leader: Environmental Information Delivery
NIWA
DDI:  +64 (4) 3860529




This is documented in the "FAQ", but if you find that it needs updating 
please submit a documentation pull request: 
http://www.mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map


(2006, ha, I'm old)

-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Adding a logo & attribution

2016-02-15 Thread Lime, Steve D (MNIT)
You can use an inline feature like so:

  LAYER
TYPE '
NAME 'logo'
STATUS DEFAULT
TRANSFORM LR
UNITS PIXELS
FEATURE
  POINTS -50 -20 END
  TEXT 'My Attribution'
END
CLASS
  ... logo graphic and a label ...
END
  END

I'm not positive on the syntax but this would consistently put something in the 
lower right-hand corner. You might have to putz a bit with it but I know it can 
be done.

Steve


From: mapserver-users [mapserver-users-boun...@lists.osgeo.org] on behalf of 
Brent Wood [brent.w...@niwa.co.nz]
Sent: Friday, February 12, 2016 8:55 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Adding a logo & attribution


Hi,


What is the recommended way to add a logo & text attribution clause in the 
bottom right corner of a mapserver WMS service?


Thanks


Brent Wood

Programme leader: Environmental Information Delivery
NIWA
DDI:  +64 (4) 3860529


Brent Wood
Principal Technician - GIS and Spatial Data Management
Programme Leader - Environmental Information Delivery
+64-4-386-0529 | 301 Evans Bay Parade, Greta Point, Wellington | 
www.niwa.co.nz<http://www.niwa.co.nz>
[NIWA]<http://www.niwa.co.nz>
To ensure compliance with legal requirements and to maintain cyber security 
standards, NIWA's IT systems are subject to ongoing monitoring, activity 
logging and auditing. This monitoring and auditing service may be provided by 
third parties. Such third parties can access information transmitted to, 
processed by and stored on NIWA's IT systems.



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Adding a logo & attribution

2016-02-12 Thread Brent Wood
Hi,


What is the recommended way to add a logo & text attribution clause in the 
bottom right corner of a mapserver WMS service?


Thanks


Brent Wood

Programme leader: Environmental Information Delivery
NIWA
DDI:  +64 (4) 3860529


Brent Wood
Principal Technician - GIS and Spatial Data Management
Programme Leader - Environmental Information Delivery
+64-4-386-0529 | 301 Evans Bay Parade, Greta Point, Wellington | 
www.niwa.co.nz
[NIWA]
To ensure compliance with legal requirements and to maintain cyber security 
standards, NIWA's IT systems are subject to ongoing monitoring, activity 
logging and auditing. This monitoring and auditing service may be provided by 
third parties. Such third parties can access information transmitted to, 
processed by and stored on NIWA's IT systems.



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users