[Mapbender-commits] r2147 - branches/2.4.5/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Feb 27 07:50:54 EST 2008


Author: astrid_emde
Date: 2008-02-27 07:50:53 -0500 (Wed, 27 Feb 2008)
New Revision: 2147

Added:
   branches/2.4.5/http/php/mod_exportMapImage_server.php
Log:
http://www.mapbender.org/ExportMapimage
new module to export mapimage

Added: branches/2.4.5/http/php/mod_exportMapImage_server.php
===================================================================
--- branches/2.4.5/http/php/mod_exportMapImage_server.php	                        (rev 0)
+++ branches/2.4.5/http/php/mod_exportMapImage_server.php	2008-02-27 12:50:53 UTC (rev 2147)
@@ -0,0 +1,57 @@
+<?php
+# $Id$
+# http://www.mapbender.org/ExportMapimage
+# 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.
+
+include_once(dirname(__FILE__)."/../../conf/mapbender.conf"); 
+include_once(dirname(__FILE__)."/../classes/class_weldMaps2Image.php");
+
+$imageType = "";
+if(isset($_REQUEST["imagetype"])){
+	
+	$imageType = $_REQUEST["imagetype"];
+	
+}
+
+$urls = "";
+if(isset($_REQUEST["wms_urls"])){
+	
+	$wms_urls = $_REQUEST["wms_urls"];
+	
+}
+
+echo "Imagetype: <br>".$imageType."<br><br>";
+
+$array_file = array();
+$array_file["dir"]  = TMPDIR; 
+$array_file["filename"] = "image"; 
+
+// static for testing 
+// $url_1 = "http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/germany/germany.map&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=Topographie&STYLES=,,,,,,,,&SRS=EPSG:31467&BBOX=3337412.5,5636600,3366787.5,5655400&WIDTH=625&HEIGHT=400&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage";
+// $url_2 = "http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/germany/germany.map&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=Staedte&STYLES=,,,,,,,,&SRS=EPSG:31467&BBOX=3337412.5,5636600,3366787.5,5655400&WIDTH=625&HEIGHT=400&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage";
+// $url_3 = "http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/germany/germany.map&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=Bahnlinien&STYLES=,,,,,,,,&SRS=EPSG:31467&BBOX=3337412.5,5636600,3366787.5,5655400&WIDTH=625&HEIGHT=400&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage";
+// $url_4 = "http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/germany/germany.map&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=Strassen&STYLES=,,,,,,,,&SRS=EPSG:31467&BBOX=3337412.5,5636600,3366787.5,5655400&WIDTH=625&HEIGHT=400&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage";
+// $array_urls  = array ($url_1, $url_2, $url_3, $url_4);
+
+$array_urls = explode("___", $wms_urls);
+$image = new weldMaps2Image($array_urls, $array_file);
+ 
+ 
+ $image->getImage($imageType, 'file');
+
+ 
+?>


Property changes on: branches/2.4.5/http/php/mod_exportMapImage_server.php
___________________________________________________________________
Name: svn:keywords
   + HeadURL Id LastChangedBy LastChangedDate LastChangedRevision



More information about the Mapbender_commits mailing list