MapServer "Points"/Query Question

Donald L. Schrupp dschrupp at ix.netcom.com
Wed Dec 6 20:03:33 EST 2000


Have been looking in on the MapServer list server, as I've been reading
up
and tinkering with MapServer (on several Linux boxes; SuSE 6.1 and
RedHat 6.0).

I've reached a "stallout" on the "practice" application I've been
working on,
(as a mutation of the demo_init.html/demo.map example). I can't seem to
figure
out how to get data returned from a point shape file, though I can for a
line
shapefile .... as evidenced by the "output" example to be found at:

		http://lamar.ColoState.EDU/~hqwris/fishdata.jpg

Attached are code "snippets" from my modifications to the   demo.map  
file.
Any suggestions on code to be added, deleted, or modified, would be
appreciated.
Thanks in advance for any input the "group" might provide.

								Don
-------------- next part --------------
***********************************
Code from "modified" demo.map file:
***********************************

LAYER
  NAME fishsite
  TYPE POINT
  STATUS ON

  DATA fishsite

  CLASSITEM "index_key"
  CLASS 
    SYMBOL 1
    SIZE 7
    NAME 'FishSite'
    COLOR 80 200 80
  END

  HEADER "fishsite_header.html"
  FOOTER "fishsite_footer.html"
  QUERY    
    TEMPLATE "fishsite.html"    
  END

  LABELITEM "index_key"

  TOLERANCE 5
END

*********************************
Code from "fishdata_header.html":
*********************************

<font size+1><b>Layer: Fish Sites</b></font><p>
<table cellpadding=5 cellspacing=2 border=0>
<tr bgcolor=#CCCCCC><th>index_key</th><th>stream</th><th>region</th><th>basin</th></tr>

*********************************
Code from "fishdata.html":
*********************************

<tr><td>[index_key]</td><td>[stream]</td><td>[region]</td><td>[basin]</td></tr>

*********************************
Code from "fishdata_footer.html":
*********************************

</table><p>


More information about the mapserver-users mailing list