[Mapserver-users] Fwd: perl mapscript 3.6.4 $layer->queryByPoint
Lowell Filak
lfilak at medinaco.org
Fri Jan 17 07:33:17 PST 2003
I think 1 small change should fix it.
HTH
Lowell F.
The following message was sent by Vincent Jansen <vincent at javel.nl> on Fri, 17 Jan 2003 16:18:10 +0100.
> Hi,
>
> In perl I'm using the folowing :
>
> $layer = $mapObj->getLayerByName('query wijk');
> $layer->{status} = 1;
$layer->{status} = $mapscript::MS_ON;
>
> $result = $layer->queryByPoint($mapObj, $point, MS_SINGLE, 0);
> $data = $layer->getResult(0);
> $shape = $data->{shapeindex};
>
> width a valid mapObj and Point
> on a layer that looks like
>
> LAYER
> CLASS
> COLOR 0 0 255
> OUTLINECOLOR 0 0 0
> SYMBOL 'arcering'
> END
> DATA "wijkvlakken"
> NAME "query wijk"
> STATUS OFF
> TYPE POLYGON
> END
>
> although $return == 1 and i'm positive there's a shape at the givvin point,
> somehow $data and $shape stay empty
>
> Am i missing something obvious?
>
> Thanks
> --
> Vincent Jansen
> vincent at javel.nl
>
> _______________________________________________
> 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