Can't get results from querying line shapefiles
John Hockaday
johnh at erin.gov.au
Mon May 8 00:24:30 PDT 2000
Hi,
I can query polygon shapfiles but I can't query line nor point
shapefiles using mapserv.
I get the following error in an HTML page:
==================================================================
An error has occurred in msQueryUsingPoint(): General error message. No
matching record(s) found.
Please contact .....
==================================================================
I am calling mapserv with the following URL:
http://atlas/cgi-bin/fornet/mapserv?map=/info/cgi-data/atlas/tmp/22217.map&imgex
t=151.088+-24.0161041666667+151.381333333333+-23.7202708333333&mode=nquery&imgsi
ze=300+240&img.x=151&img.y=102
My 22217.map file looks like this:
==================================================================
SHADESET /info/cgi-data/atlas/fornet/src/ms_demo/symbols/shade.sym
MARKERSET /info/cgi-data/atlas/fornet/src/ms_demo/symbols/marker.sym
LINESET /info/cgi-data/atlas/fornet/src/ms_demo/symbols/line.sym
SHAPEPATH /info/cgi-data/atlas/fornet/
TRANSPARENT on
LAYER
DESCRIPTION "100k Coastline"
NAME "coast"
TYPE polygon
STATUS default
TOLERANCE 0
DATA /info/cgi-data/atlas/fornet/coast
CLASS
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 255 255 130
SIZE 10
END
END
LAYER
DESCRIPTION "Rail"
NAME "rail"
TYPE line
STATUS default
TOLERANCE 40
DATA /info/cgi-data/atlas/fornet/rail
QUERY
TEMPLATE /info/cgi-data/atlas/fornet/rail.html
END
CLASS
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 000 255 000
SIZE 10
END
END
END
==================================================================
and rail.html looks like this:
==================================================================
Result [rn]
<p>
<menu>
<li> Type: [FEAT_CODE]</li>
<li> From node: [FNODE_]</li>
<li> To Node: [TNODE_]</li>
<li> Length: [LENGTH]</li>
</menu>
<p>
==================================================================
which is similar to what I use for querying polygons which works.
I'm not sure which mapserv version I am using. Is there some way of
getting the version number?
I would greatly appreciate if someone can give me some indication as to
what I am doing wrong?
Thank you in advance.
Johnh
More information about the MapServer-users
mailing list