Search returned no results
Bart van den Eijnden
bartvde at XS4ALL.NL
Sun Apr 17 08:01:06 PDT 2005
Hi,
can you look up the exact mode=query request from your webserver access
log?
With respect to the legend, only CLASSes that have a NAME show up in the
legend.
Best regards,
Bart
On Sun, 17 Apr 2005 08:02:42 -0700, Jeffrey Johnson <ortelius at GMAIL.COM>
wrote:
> Nope. I tried values up to 100 and no luck. The polygon layer covers
> nearly all of the map area, so this shouldn't a problem. I am also
> having trouble getting the legend to work. An image seems to be
> generated, but its empty. Is there something wrong with my mapfile
> that allows the map to be generated, but other modules not to work?
>
> Thanks,
>
> Jeff
>
> On 4/17/05, Kralidis,Tom [Burlington] <Tom.Kralidis at ec.gc.ca> wrote:
>>
>> Try setting tolerance in the LAYER object (i.e. TOLERANCE 10).
>>
>> ..Tom
>>
>>
>> > -----Original Message-----
>> > From: UMN MapServer Users List
>> > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeffrey Johnson
>> > Sent: Sunday, 17 April, 2005 09:36
>> > To: MAPSERVER-USERS at LISTS.UMN.EDU
>> > Subject: [UMN_MAPSERVER-USERS] Search returned no results
>> >
>> >
>> > I'm having trouble getting query mode to work in my first
>> > mapserver application. The standard "msQueryByPoint(): Search
>> > returned no results. No matching record(s) found. " is
>> > returned. The map file and template seem pretty simple and
>> > straightforward. I checked that img.x and img.y are being
>> > passed. Not sure whats up. Any ideas?
>> >
>> > Jeff
>> >
>> > ----Map File-----
>> >
>> > MAP
>> > NAME SDNHMPaleo
>> > STATUS ON
>> > SIZE 800 600
>> > EXTENT 6150763 1775304 6613436 2129759
>> > UNITS METERS
>> > SHAPEPATH "/home/www/sdnhmpaleo/data"
>> > IMAGECOLOR 230 230 230
>> > SYMBOLSET 'symbols.sym'
>> > FONTSET "fonts/fonts.list"
>> > DEBUG ON
>> > IMAGETYPE PNG
>> >
>> > WEB
>> > HEADER 'header.html'
>> > FOOTER 'footer.html'
>> > TEMPLATE 'map.htm'
>> > IMAGEPATH '/home/www/sdnhmpaleo/temp/'
>> > IMAGEURL '/sdnhmpaleo/temp/'
>> > MINSCALE 50000
>> > MAXSCALE 5000000
>> > LOG '/home/www/sdnhmpaleo/sdnhmpaleo.log'
>> > END
>> >
>> > SCALEBAR
>> > IMAGECOLOR 255 255 255
>> > LABEL
>> > COLOR 0 0 0
>> > SIZE TINY
>> > END
>> > STYLE 1
>> > SIZE 300 10
>> > COLOR 0 0 0
>> > UNITS MILES
>> > INTERVALS 2
>> > TRANSPARENT FALSE
>> > STATUS EMBED
>> > POSITION LR
>> > END
>> >
>> > LAYER
>> > NAME geology
>> > DATA cal-geol2
>> > STATUS OFF
>> > TYPE POLYGON
>> > CLASSITEM 'ptype'
>> > LABELITEM 'ptype'
>> > CLASS
>> > EXPRESSION 'water'
>> > COLOR 190 232 255
>> > OUTLINECOLOR 0 0 0
>> > END
>> > CLASS
>> > EXPRESSION 'Q'
>> > COLOR 255 255 179
>> > OUTLINECOLOR 0 0 0
>> > END
>> > *** More classes here ***
>> > END
>> >
>> > LAYER
>> > NAME roads
>> > DATA SD-Freeways2
>> > STATUS OFF
>> > TYPE LINE
>> > CLASS
>> > COLOR 0 0 0
>> > END
>> > END
>> >
>> > LAYER
>> > NAME localities
>> > DATA localities
>> > STATUS OFF
>> > TYPE POINT
>> > CLASS
>> > SYMBOL 'circle'
>> > COLOR 255 0 0
>> > MINSIZE 5
>> > END
>> > END
>> > END
>> >
>> > ----End Map File-----
>> >
>> > ----HTML Template-----
>> > <HTML>
>> > <head>
>> > <title> SDNHM Paleo Collection WebGIS - Sample Map</title>
>> > </head> <body bgcolor='ffffff'> <font color='000000'
>> > face="arial, helvetica"> <form name="mapserv" method="POST"
>> > action="/cgi-bin/mapserv"> <input type="hidden" name="map"
>> > value="[map]"> <input type="hidden" name="imgext"
>> > value="[mapext]"> <table border=0 cellspacing=5> <tr> <td
>> > valign = top> <center><b>LEGEND</b></center><br>
>> > <input type="checkbox" name="layer" value="localities"
>> > [localities_check]>Paleo Localities<br> <input
>> > type="checkbox" name="layer" value="geology"
>> > [geology_check]>Geology<br> <input type="checkbox"
>> > name="layer" value="roads" [roads_check]>Roads<br> <input
>> > type="checkbox" name="layer" value="hydro"
>> > [hydro_check]>Hydrology<br> <input type="checkbox"
>> > name="layer" value="quads" [quads_check]>24K Quad Index<br>
>> > <input type="checkbox" name="layer" value="drg"
>> > [drg_check]>Topo Sheets<br> <input type="checkbox"
>> > name="layer" value="landsat" [landsat_check]>Landsat<br>
>> > <input type="hidden" name="imgxy" value="[center]"> <input
>> > type="hidden" name="savequery" value="true"> <br> <input
>> > type="radio" name="mode" value="browse" checked>Browse<br>
>> > <input type="radio" name="mode" value="query">Query<br> <br>
>> > <select name="zoom"> <option value="4" [zoom_4_select]>Zoom
>> > in 4x</option> <option value="3" [zoom_3_select]>Zoom in
>> > 3x</option> <option value="2" [zoom_2_select]>Zoom in
>> > 2x</option> <option value="1"
>> > [zoom_1_select]>Recenter</option> <option value="-2"
>> > [zoom_-2_select]>Zoom out 2x</option> <option value="-3"
>> > [zoom_-3_select]>Zoom out 3x</option> <option value="-4"
>> > [zoom_-4_select]>Zoom out 4x</option> </select> <br><br>
>> > <input type="submit" name="submit" value="Refresh"> <br><br>
>> > <center><a href="/sdnhmpaleo/default.htm">Back to Project
>> > Homepage</a></center> </td> <td> <input type="image"
>> > name="img" src="[img]" width=800 height=600 border=1>
>> > </td></tr> </table> </form> </body> -----End HTML Template-----
>> >
>>
>
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
More information about the MapServer-users
mailing list