svn commit: r929 - trunk/mapbender/http/php/mod_displayImage.php
christoph at osgeo.org
christoph at osgeo.org
Tue Nov 21 10:37:20 EST 2006
Author: christoph
Date: 2006-11-21 15:37:20+0000
New Revision: 929
Added:
trunk/mapbender/http/php/mod_displayImage.php
Log:
files for layer preview
Added: trunk/mapbender/http/php/mod_displayImage.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_displayImage.php?view=auto&rev=929
==============================================================================
--- (empty file)
+++ trunk/mapbender/http/php/mod_displayImage.php 2006-11-21 15:37:20+0000
@@ -0,0 +1,16 @@
+<?php
+ require_once("../../conf/mapbender.conf");
+ $con = db_connect(DBSERVER,OWNER,PW);
+ db_select_db(DB,$con);
+
+ $column = $_GET['col'];
+ $layer_id = $_GET['id'];
+ $sql_p = "SELECT * FROM layer_preview WHERE fkey_layer_id = $1 LIMIT 1";
+ $v_p = array($layer_id);
+ $t_p = array('i');
+ $res_p = db_prep_query($sql_p, $v_p, $t_p);
+ $row_p = db_fetch_array($res_p);
+
+ header("Content-type: image/png");
+ echo pg_unescape_bytea($row_p[$column]);
+?>
\ No newline at end of file
More information about the Mapbender_commits
mailing list