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

Vincent Jansen vincent@javel.nl
Fri, 17 Jan 2003 16:18:10 +0100


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@javel.nl

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users