Query by point
Eric Bridger
eric at GOMOOS.ORG
Mon Jan 17 13:32:24 PST 2005
At 01:41 PM 01/17/2005 -0500, Jeff Portwine wrote:
>I am trying to use layer->queryByPoint in my php mapscript file, and I'm
>getting an error
>"Warning: [MapServer Error]: msSHPOpenFile(): No (NULL) filename provided".
>I'm not exactly sure what this error means.... but i'm not very clear on how
>to use queryByPoint.
>
>I have a map with several points marked with a small red or blue circle gif.
>I want to make it so that a user clicking on those points brings up a page
>with information about that point. As I understand it, using the
>queryByPoint function looks at that point for a "shape" in a class that has
>a template value set... I'm assuming that the string stored in "template"
>is supposed to be a URL or a file name but i'm not entirely sure.
The error message looks like Mapserver is assuming your layer is a shape file layer but that the DATA section of your layer has no shape file name associated with it. What type of layer is it you're attempting to query?
The TEMPLATE should be an html template file which the CGI mapserv would use to display the query results, but in mapscript it just serves to indicate that the layer should be querable and can be any abritrary string, e.g. TEMPLATE "ttt"
Eric
More information about the MapServer-users
mailing list