[Cartoweb-users] 2 mapserver layers as 1 cartoweb layer: possible?

Jacolin Yves yjacolin at free.fr
Wed Aug 8 11:44:00 EDT 2007


Hi,

You can use the REQUIRES parameter as well, e.g.:
LAYER
   NAME   point
   ....
END
 
LAYER
   NAME   line
   STATUS default   # <---------- status default: the layer is ever visible
   REQUIRES "[point]"  # <------ but only if layer "point" is visible too
   ....
END

Reghards,

Y.
Le Wednesday 08 August 2007 17:34:55 Emmanuel BELO, vous avez écrit :
> Hi,
>
> have you tried the GROUP option in Mapserver?
>
> http://mapserver.gis.umn.edu/docs/reference/mapfile/layer
>
> Best regards,
>
> Emmanuel BELO
>
> Simon ORTET wrote:
> > Hi,
> >
> > I found just a little problem with aggregated layers. When i select the
> > group, the layer reorder plugin shows all the layers of the group
> > instead of the layer group name.
> > I'll try to work on that but any help would be appreciated
> >
> > thanks.
> > Simon
> >
> > Alexandre Saunier a écrit :
> >> Hello,
> >>
> >> that's a job for layers aggregation. Gather your 2 layers under the
> >> same  layergroup, declaring the latter "aggregate". Thus it will
> >> appear as a regular layer that would behave like your 2 mapserver
> >> layers.
> >>
> >> http://cartoweb.org/doc_head/docbook/xhtml/user.layers.html#user.layers.
> >>tree.layergroups
> >>
> >>
> >> Alexandre
> >>
> >> Simon ORTET wrote:
> >>> Hi
> >>>
> >>> Since i have performance issues with my postgis requests on a fat
> >>> table (despite geometry index), i have created different versions of
> >>> this table, more or less simplified. One very simplified with a
> >>> minscale of 500000 and an other detailed with a maxscale of 500000.
> >>> Now i would like Cartoweb to manage these differents mapserver layers
> >>> as one cartoweb layer. ie when the user checks the layer name in the
> >>> tree, i want Cartoweb to choose what layer to use according to the
> >>> current scale.
> >>>
> >>> Is that something possible without diging into layers coreplugin ?
> >>>
> >>>
> >>> Thanks
> >>> Simon


-- 
Yves Jacolin
---
http://softlibre.gloobe.org



More information about the Cartoweb-users mailing list