[Mapserver-users] Retriving class of a result

giorgio at ufo.nauta.it giorgio at ufo.nauta.it
Fri Jun 20 11:46:58 EDT 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