[Mapbender-users] Query Parameter for a specific external WMS

gisbert.breitbach at gkss.de gisbert.breitbach at gkss.de
Thu Oct 30 10:13:12 EDT 2008


Hi,
but how do I add the time parameter as a vendor specific parameter.

I tried to use mod_add_vendorspecific.php
with that kind of code:

<?php
# $Id:
# add vendor-specific parameters to MapRequest and FeatureInfoRequests
# http://www.mapbender.org/index.php/mod_add_vendorspecific.php
# Copyright (C) 2002 CCGIS 
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 
USA.

require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
?>
mb_registerVendorSpecific("mod_vs_init()");
function mod_vs_init(){ 
var re = "time=<?php echo 
"2008-10-15T00%3A00%3A00%2F2008-10-15T23%3A59%3A00" ?>";

   return re;
}

The only thing that happened is that all maps disappeared including 
background, overview and mapframe.
Best regards,
Gisbert
____________________________________________________
Gisbert Breitbach, GKSS Forschungszentrum
Tel.: +49 4152 87 1563
Fax: +49 4152 87 4 1563
E-Mail: Gisbert.Breitbach at gkss.de



mapbender_users-bounces at lists.osgeo.org wrote on 30.10.2008 14:33:57:

> Hi,
> 
> I don't think this is possible at the moment. Mapbender is not aware
> of the wms time component. What you could do, is to add the time
> parameter as a vendor specific parameter, that would be controlled by
> a customized module.
> 
> If you want to use the wms time parameter you would also have to setup
> your wms accordingly, so that you only have one layer "chlorophyll
> measurements" and a time column for your data.
> 
> Cheers, Michael
> 
> 
> 2008/10/30  <gisbert.breitbach at gkss.de>:
> > Hello everybody,
> > I'm using Mapbender to show different measured raster maps, for 
example
> > Chlorophyll in the north sea measured by satellites. Every day a new
> > measurement is done. In my own WMS every new measurement means a new 
layer
> > with a name reflecting the date.
> >
> > Other people have solved the problem introducing a time filter 
parameter
> > into the GetMap request like
> > ...&TIME=2008-10-15T00%3A00%3A00%2F2008-10-15T23%3A59%3A00&...
> >
> > Is it possible to include such a filter parameter into the GetMap 
request
> > of Mapbender and, if yes, how can it be done.
> >
> > Many thanks,
> > Gisbert Breitbach
> > ____________________________________________________
> > Gisbert Breitbach, GKSS Forschungszentrum
> > Tel.: +49 4152 87 1563
> > Fax: +49 4152 87 4 1563
> > E-Mail: Gisbert.Breitbach at gkss.de
> >
> >
> > _______________________________________________
> > Mapbender_users mailing list
> > Mapbender_users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapbender_users
> >
> 
> 
> 
> -- 
> -----------------------------------------------------------
> Michael Schulz
> mschulz at webgis.de
> 
> in medias res
> Gesellschaft für Informationstechnologie mbH
> 
> In den Weihermatten 66
> 79108 Freiburg
> 
> Tel  +49 (0)761 556959-5
> Fax +49 (0)761 556959-6
> 
> http://www.webgis.de / http://www.zopecms.de
> -----------------------------------------------------------
> Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
> Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapbender_users



More information about the Mapbender_users mailing list