[Mapserver-users] Retriving class of a result
giorgio@ufo.nauta.it
giorgio@ufo.nauta.it
20 Jun 2003 15:46:58 -0000
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
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users