svn commit: r43 - trunk/mapbender/http/classes/class_geomColl.php

uli at osgeo.org uli at osgeo.org
Thu Apr 13 16:54:44 EDT 2006


Author: uli
Date: 2006-04-13 20:54:44+0000
New Revision: 43

Added:
   trunk/mapbender/http/classes/class_geomColl.php

Log:
import Mapbender source without history

Added: trunk/mapbender/http/classes/class_geomColl.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/classes/class_geomColl.php?view=auto&rev=43
==============================================================================
--- (empty file)
+++ trunk/mapbender/http/classes/class_geomColl.php	2006-04-13 20:54:44+0000
@@ -0,0 +1,88 @@
+<?php
+# $Id: map.php,v 1.13 2005/09/13 14:08:41 uli_rothstein Exp $
+# $Header: /cvsroot/mapbender/mapbender/http/javascripts/map.php,v 1.13 2005/09/13 14:08:41 uli_rothstein Exp $
+# 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.
+
+class geomColl { 
+
+	var $cnt_member;
+	var $member = array();
+	
+	function geomColl () {
+		$this->cnt_member = -1;
+	}
+
+	function addGeometryMember($type) {
+		$this->cnt_member++;
+		$this->member[$this->cnt_member] = new gmlMember($type);
+	}
+
+	function addPolygon () {
+		$this->member[$this->cnt_member]->addPolygon();
+	}
+
+	function addLine () {
+		$this->member[$this->cnt_member]->addLine();
+	}
+	function addPoint () {
+		$this->member[$this->cnt_member]->addPoint();
+	}
+	
+#	function addCoordinates ($coord, $pos) {
+#		$this->member[$this->cnt_member]->addCoordinates($coord, $pos);
+#	}
+
+	function addCoordinates ($coord) {
+		$this->member[$this->cnt_member]->addCoordinates($coord);
+	}
+
+	function addLabel($label) {
+		$this->member[$this->cnt_member]->addLabel($label);
+	}
+
+	function addAttribute($attribTag, $attrib) {
+		$this->member[$this->cnt_member]->setAttribute($attribTag, $attrib);
+	}
+
+	function addToPng($image, $bbox, $width, $height, $line, $text, $label) {
+		for($i=0; $i <= $this->cnt_member; $i++){
+			$image = $this->member[$i]->addToPng($image, $bbox, $width, $height, $line, $text, $label);
+		} 
+		return $image;
+	}
+
+	function getAllGeom() {
+		return $this->member;
+	}
+
+	function getMember($index) {
+		return $this->member[$index];
+	}
+
+	function getGeomCollSize() {
+		return count($this->member);
+	}	
+	
+	function getJavaObjStr($bbox, $width, $height) {
+		$javaObjStr = "";
+		for($i=0; $i <= $this->cnt_member; $i++){
+			$javaObjStr .= $this->member[$i]->getJavaObjStr($bbox, $width, $height);
+		}
+		return $javaObjStr;
+	}
+}
+?>
\ No newline at end of file




More information about the Mapbender_commits mailing list