[Mapserver-users] Fwd: perl mapscript 3.6.4 $layer->queryByPoint

Vincent Jansen vincent at javel.nl
Fri Jan 17 10:18:10 EST 2003


Hi,

In perl I'm using the folowing :

	$layer = $mapObj->getLayerByName('query wijk');
	$layer->{status} = 1;

	$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




More information about the mapserver-users mailing list