cvs: pear /Image_GIS Map.php
| From: | Sebastian Bergmann | Date: | Mon, 30 Dec 2002 09:17:29 +0000 |
| Subject: | cvs: pear /Image_GIS Map.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-7990@lists.php.net to get a copy of this message | ||
sebastian Mon Dec 30 04:17:29 2002 EDT
Modified files:
/pear/Image_GIS Map.php
Log:
Add example.
Index: pear/Image_GIS/Map.php
diff -u pear/Image_GIS/Map.php:1.1 pear/Image_GIS/Map.php:1.2
--- pear/Image_GIS/Map.php:1.1 Mon Dec 30 04:11:44 2002
+++ pear/Image_GIS/Map.php Mon Dec 30 04:17:29 2002
@@ -13,7 +13,7 @@
// | license@php.net so we can mail you a copy immediately. |
// +------------------------------------------------------------------------+
//
-// $Id: Map.php,v 1.1 2002/12/30 09:11:44 sebastian Exp $
+// $Id: Map.php,v 1.2 2002/12/30 09:17:29 sebastian Exp $
//
require_once 'Image/Color.php';
@@ -23,7 +23,23 @@
/**
* ...
*
-* @version $Revision: 1.1 $
+* The following example draws the region around the
+* Germany city of Kiel which is Jan's home town:
+*
+* <?php
+* require_once 'Image/GIS/Map.php';
+*
+* $map = new Image_GIS_Map(960, 1280, 'E00', 'GD', false);
+* $map->setRange(9.7, 10.5, 54.2, 54.7);
+*
+* $map->draw("./data/germany_rdline.e00", 'gray');
+* $map->draw("./data/germany_pppoly.e00", 'green');
+* $map->draw("./data/germany_dnnet.e00", 'blue');
+* $map->draw("./data/germany_ponet.e00", 'black');
+* $map->saveImage('test.png');
+* ?>
+*
+* @version $Revision: 1.2 $
* @since Image_GIS 1.0.0
*/
class Image_GIS_Map {