[Chameleon] LayerLabels Widget + Postgis Layer

Geodata Analysis info at e-geodata.gr
Tue Sep 6 07:23:35 EDT 2005


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 
*C:\ms4w\apps\chameleon\htdocs\widgets\LayerLabels\LayerLabelsPopup.phtml* 
on line *178

*The problem was at line 179 of  
C:\ms4w\apps\chameleon\htdocs\widgets\LayerAttributes.php

$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 ?



More information about the Chameleon mailing list