PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Images » Image_GIS » Bug #9545

Fatal error: Call to a member function on a non-object in [...]GIS.php

Details

Submitted2006-12-05 10:13 UTC
Frominnocentus at hotmail dot de
Assignedkguest
StatusClosed
PackageImage_GIS
PHP Version4.3.10
OSLinux
Roadmaps(Not assigned)

Comments

[2006-12-05 10:13 UTC] innocentus at hotmail dot de

Description:
------------
Fatal error: Call to a member function on a non-object in [...]GIS.php on line 190
-----
GIS.php belongs to the downloaded package Image_GIS.

After downloading all Dependency-Packages and after uploading and correcting the require()-Paths and after using the test-script which was shipped with that class the error occured.

I have no pear installed but the class doesnt seem to need any inclusion of pear.

I installed the image_gis and the depending packages manually.
All require-paths seems to be correct.

Test script:
---------------
//Shipped test-script:
// Create new map.

$map = new Image_GIS(
array(
'width' => 960,
'height' => 1280,
'range' => array(
'x1' => 9.7,
'x2' => 10.5,
'y1' => 54.2,
'y2' => 54.7
)
)
);

// Political
$map->addDataFile('germany_ponet.e00', 'black');

// Roads
$map->addDataFile('germany_rdline.e00', 'gray');

// Populated Places
$map->addDataFile('germany_pppoly.e00', 'green');

// Drainage
$map->addDataFile('germany_dnnet.e00', 'blue');

$map->saveImage('kiel.png');

Expected result:
----------------
The testscript should draw a map.

Actual result:
--------------
The problem persists.