[Chameleon] LayerLabels Widget + Postgis Layer

Bart van den Eijnden BEN at Syncera-ITSolutions.NL
Tue Sep 6 07:42:13 EDT 2005


this is correct, I don't know how the rest of the Chameleon code deals with this but I'll check. This is probably also true for OGR datasources.

I have opened up a bug report and will try to fix this soon.


Thanks for reportiing the issue.

Best regards,

Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl

>>> Geodata Analysis <info at e-geodata.gr> 09/06/05 1:23 pm >>>
Hi list,

I was trying to use the the LayerLabels widget to add labels to a 
postgis layer and i was getting the following error :*

Warning*: array_keys(): The first argument should be an array in 
on line *178

*The problem was at line 179 of  

$oShape = $oLayer->getShape($nTile, 0 );

I changed that to: $oShape = $oLayer->getShape($nTile, 1 );  and 
everything works fine now,

It seems that the index begins from 1 with postgis layers. Is that correct ?

Chameleon mailing list
Chameleon at lists.maptools.org 

More information about the Chameleon mailing list