[mapserver-users] Sequence of layers

Assefa Yewondwossen assefa at dmsolutions.ca
Wed Feb 27 14:06:36 EST 2002


 Hi there,

There has been an addition recently to php/mapscript of two sets of functions
relative to layer's sequence : (these functions applies on the map object)

 - boolean  setlayersdrawingorder(array layeryindex)
        Set the layer's order array. The argument passed must be a valid array
with all the layer's index.
        Return TRUE on success or else FALSE.

- array   getlayersdrawingorder()
        Return an array containing layer's index in the order which they are
drawn.

 and

boolean moveLayerUp(int layerindex)
        Move layer up in the hierarcy of drawing.

   boolean moveLayerDown(int layerindex)
        Move layer down in the hierarcy of drawing.


The idea is to change the layer's order when the map is drawn or saved.

Later,

Steve Lime wrote:

> That's one way. There is a mechanism in the mapserver structures for
> doing this but I don't
> think it's been exposed through any of the scripting languages. I'll
> let the folks at DMSolutions
> expand on that if they care to.
>
> Steve
>
> Stephen Lime
> Data & Applications Manager
>
> Minnesota DNR
> 500 Lafayette Road
> St. Paul, MN 55155
> 651-297-2937
>
> >>> "Lowell Filak" <lfilak at medinaco.org> 02/27/02 10:51AM >>>
> Alternate solution:?
> http://mapserver.gis.umn.edu/wilma/mapserver-users/0102/msg00010.html
> Lowell F.
>
> The following message was sent by Lyndon Zimmermann
> <lyndon.zimmermann at adelaide.edu.au> on Wed, 27 Feb 2002 14:29:27
> +1030.
>
> > Greetings all,
> >
> > We're running straight Mapserver for the Bioenergy Atlas for
> Australia
> > and one of the limitations I see is the inability (I presume I'm
> right
> > here) to control the sequence of presentation of layers, aside from
> the
> > mapfile.  Aside from multiple .map files, what options exist for
> > altering this sequence?
> >
> > Ditto theme colours and hash.
> >
> > Regards,
> >
> > Lyndon Z
> > --
> > Lyndon Zimmermann
> > BE (Mech Adelaide) Grad Dip Bus Admin (UniSA)
> >
> > LOW RAINFALL AGROFORESTRY RESEARCH UNIT
> > Affiliated with the CRC for Plant Based Management of Dryland
> Salinity
> >
> > University of Adelaide Department of Agronomy and Farming Systems
> > Physical address: Hannaford Building (via Gate 3) Waite Campus,
> South
> > Australia
> > Postal: Adelaide University, PMB1 Glen Osmond, SA 5064, Australia
> > Dir (Soil and Water) +61-8-8303 6571 Mob 0414 91 4577
> > Fax +61-8-8303 6717 email lyndon.zimmermann at adelaide.edu.au
> >
> > Bionergy Atlas Website:
> >
> http://www.gisca.adelaide.edu.au/~lzimmerm/bioenergy_atlas/atlas_index.html
>
> >
> > Unless otherwise stated, the content of this message and attachments
> may
> > be forwarded or quoted, with due acknowledgement.  No representation
> is
> > made that this email is free of viruses. Virus scanning is
> recommended
> > and is the responsibility of the recipient.

--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056
Fax:   (613) 565-0925
----------------------------------------------------------------





More information about the mapserver-users mailing list