[Mapserver-users] Retriving class of a result
giorgio at ufo.nauta.it
giorgio at ufo.nauta.it
Fri Jun 20 08:46:58 PDT 2003
I can't find a way to retrieve the class of a shape found with a query ....
my $id=$rslt->{shapeindex};
my $shp = new shapeObj($mapscript::MS_SHAPE_POLYGON);
$layer->open($me->mappa->{shapepath});
$layer->getShape($shp,$rslt->{tileindex},$id);
my $c= $rslt->{classindex};
my $class= $layer->getClass($c);
but $c is always an empty string!
Tried also $c= $shp->{classindex}; but $c is always 0!!!
Can anybody suggest a solution?
(using mapserver 3.5 and perl mapscript ....)
thankyou!
Giorgio
More information about the MapServer-users
mailing list