No matching record(s) found -- What now?

John jkim at SCIENCES.SDSU.EDU
Mon Jun 27 00:20:24 PDT 2005


My queryByPoint() is saying "No matching record(s) found", when it should
return a shape. The layer's status is ON and I've verified that the point
that I pass it is located within the extent of the map. What else can I
check?

My PHP code:
    $layer = $map->getLayerByName("vegetation");
    $layer->queryByPoint($mapPoint, MS_MULTIPLE, -1 );

And my layer definition:
 LAYER
     NAME vegetation
     DATA veg.shp
     STATUS ON
     TYPE POLYGON
     CLASS
  COLOR 0 255 0
  OUTLINECOLOR 32 32 32
     END
 END

Do I need to have a template file? What should be in the template file?

-John



More information about the MapServer-users mailing list