Re: [pmapper-users] water mark

2008-04-30 Thread Thomas Raffin
Hi !

An example to begin.
Just add the following layer definition in your mapfile as Armin said.

LAYER
NAME credits
STATUS DEFAULT
TRANSFORM lr
TYPE ANNOTATION
FEATURE
POINTS
-5 -5
END
TEXT 'Hello !'
END
CLASS
LABEL
TYPE BITMAP
POSITION UL
COLOR 0 0 0
BUFFER 5
BACKGROUNDCOLOR  240 240 240
END
END
END

Thomas

Armin Burger a écrit :
 On 29/04/2008 18:03, Rony (PMPG) wrote:
   
 Hi all,

 Does anybody know how to generate water mark (images or text) on the images 
 in map view?

 Thanks,

 Rony
 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
 Don't miss this year's exciting event. There's still time to save $100. 
 Use priority code J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

 


 just add a layer with
 STATUS default

 to the map file and don't add it in the config.ini. Then it's drawn 
 always. This layer can be e.g. a feature layer with an image as symbol 
 (AFAIR), and set to higher transparency will make it a watermark.

 Details about layer definition might be better asked on the Mapserver 
 mailing list.

 armin

 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
 Don't miss this year's exciting event. There's still time to save $100. 
 Use priority code J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users





   
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Dynamic query join a pmapper layer

2008-04-30 Thread Gabe
I have developed an application which displays several dynamic layers in 
pmapper all integrated with the legend and toc and they interact with some 
custom plugins that I have developed.  Furthermore the layers available and 
filtering on these layers is determined by the user.

The aproach I took was to write some php code that customises the config files 
including the map file and then launches pmapper with the custom config.  Sorry 
I cant give you the code as it 'belongs' to my employer but i can give you an 
idea of how it works.

First the user logs in to the system and the code queries the database 
(postgresql) and determines what layers are available and what filters to 
apply.  The layers are read from a default mapfile the data statement is 
customised to provide filtering and then a new custom mapfile is written.  The 
php_config file is customised for the categories and the config_.. file is also 
customised with allGroups and defGroups definitions.  Pmapper is then launched.

Gabe

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:pmapper-
 [EMAIL PROTECTED] On Behalf Of Armin Burger
 Sent: Wednesday, 30 April 2008 2:43 AM
 To: Rodrigo Gaete
 Cc: pmapper-users list
 Subject: Re: [pmapper-users] Dynamic query join a pmapper layer
 
 In the current dev version there is a class to add dynamic layers. See
 the files under the plugin 'dynlayersample'. The layers need to be
 defined in JSON syntax, see example in 'dynlayer_def.txt'.
 
 This is currently under development, some parts might change to have a
 +/- generic solution that does not require to re-develop everything
 again. The idea is to have users write their own function to define the
 dynlayers in the required JSON syntax and add them to the session, then
 they will be read automatically. The possibilities to create layers
 dynamically are virtually indefinite (reading from database, text
 files,
 etc). So a complete generic functionality without any custom
 development
 is impossible. Some parts need to be defined though, like layer order.
 
 Since p.mapper uses an additional definition of layers/groups to
 circumvent some shortcomings in Mapscript, simply adding a layer to the
 map object will just draw it on the map, but maybe not for printing or
 in the TOC.
 
 armin
 
 
 On 29/04/2008 15:47, Rodrigo Gaete wrote:
  Hi pmapper users
 
  I need create a new layer dynamically in pmapper, but i don't have
 idea how can do it.
 
  My problem:
  Through another system in php, I am crossing information from various
 data base (postgresql).
   I want to show that georeferenced information by council through the
 pmapper.
   I have several layers in pmapper and would open the pmapper with
 that dynamic layer.
   How to do this?
 
  I saw that there is a customlayers.php, but I could not use it.
 
  Thanks,
  Rodrigo Gaete
 
 
 
 
 
Abra sua conta no Yahoo! Mail, o único sem limite de espaço
 para armazenamento!
  http://br.mail.yahoo.com/
  -
 
  This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
  Don't miss this year's exciting event. There's still time to save
 $100.
  Use priority code J8TL2D2.
 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/
 javaone
  ___
  pmapper-users mailing list
  pmapper-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/pmapper-users
 
 
 ---
 --
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
 Don't miss this year's exciting event. There's still time to save $100.
 Use priority code J8TL2D2.
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/
 javaone
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Add Point of Interest, How to add Chinese character?

2008-04-30 Thread Armin Burger
On 30/04/2008 04:00, xiaobao zang wrote:
 Add Point of Interest,How to add Chinese character?
 It can only use English,Some can help me?
 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
 Don't miss this year's exciting event. There's still time to save $100. 
 Use priority code J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users
 

Try what happens if you add in /incphp/customlayers.php after around 
line 84 the following line:

$pntClass-label-set(encoding, UTF-8);

Armin

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users