[Mapserver-users] Retriving class of a result

Lowell.Filak lfilak at medinaco.org
Mon Jun 30 10:02:46 PDT 2003


Try setting $c at the same time your setting $id just as a check to see if
somehow one of the other methods is changing the value of what $rslt
points to.
Also you may want to include the code segment where $rslt is set.
Of course you probably already have this solved with the post being a week
old now.
Lowell

On 20 Jun 2003 giorgio at ufo.nauta.it wrote:

> 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 at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>




More information about the MapServer-users mailing list