mapscript - layerObj.clone()

Jachym Cepicky jachym.cepicky at CENTRUM.CZ
Sat Oct 22 08:31:20 EDT 2005


Hallo,
I would like to copy one layer, modify its attributes and print it to
result map (perl MapScript):

[...]
my $newLayer = mapscript::layerObj($mapObj);
$newLayer = $layerObj->clone();
$searchLayer->{status} = 1;


my $imgObj = $mapObj->draw() or die('Unable to draw map');
$imgObj->save("/home/jachym/tmp/smaz/pokus.png"


But there is nothing in resulting image :-( What to do?

Thanks

Jáchym

-- 
Jachym Cepicky
e-mail: jachym.cepicky at centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/
-----------------------------------------
OFFICE:
Department of Geoinformation Technologies
LDF MZLU v Brně
Zemědělská 3
613 00 Brno
e-mail: xcepicky at node.mendelu.cz
URL:    http://mapserver.mendelu.cz
Tel.:   +420 545 134 514



More information about the mapserver-users mailing list