[mapserver-users] How to use 01 connection for all layers in map file
Jelmer Baas
Baas at speerit.nl
Thu Aug 6 04:27:02 PDT 2009
Don't you mean that you don't want your Oracle connection opened and
closed for each layer? If that's the case, you can use the setting
PROCESSING "CLOSE_CONNECTION=DEFER"
in your Layer.
See http://ms.gis.umn.edu/docs/reference/mapfile/layer
<http://ms.gis.umn.edu/docs/reference/mapfile/layer> or
http://mapserver.org/input/vector/ogr.html
<http://mapserver.org/input/vector/ogr.html>
Regards,
Jelmer
________________________________
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mr. Bic
Phuong
Sent: donderdag 6 augustus 2009 11:32
To: Pavel Iacovlev
Cc: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] How to use 01 connection for all
layers in map file
Your reply is really good news,
Will you please to tell me details on details how can I do like you with
a map file which has more than 17 connection now?
I do not understand yet clearly how to use "single" MapServer layer for
all?
Thanks so much and I hope you can help me more!
--- On Thu, 8/6/09, Pavel Iacovlev <iacovlev.pavel at gmail.com> wrote:
From: Pavel Iacovlev <iacovlev.pavel at gmail.com>
Subject: Re: [mapserver-users] How to use 01 connection for all layers
in map file
To: "Mr. Bic Phuong" <bicphuongonline at yahoo.com>
Date: Thursday, August 6, 2009, 3:16 PM
Hope I get your question right.
We have around 32 layers in one of the project, the approach is rather
simple, you just use a "single" Mapserver layer so there is always 1
request to Mapserver from OpenLayers. The request layer is the
combination of all your layers, the overlaying is made server side.
Details:
1. We have a custom "layer switcher" that user selects what layers he
wants to see and this data is saved, in a php session for example.
2. Then the user requests a map from a PHPMapscript(mapserver) server,
using php you fetch all the layers selected by the user previously
3. Dispatch the result
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090806/2cb1e557/attachment.htm>
More information about the MapServer-users
mailing list