[Mapserver-users] .map file help

har mar shaz_bot42 at yahoo.com
Fri Sep 12 12:07:05 EDT 2003


--0-62230597-1063382825=:40550
Content-Type: text/plain; charset=us-ascii


Hello All,

I believe I have tracked down my query by point problem.  I think it is my .map file.  What I am wanting to do is to return the state name (field is something like state_name in shape file) when the user clicks on it.  But I am getting "no records found" when I click on the state.  Here is my .map file.  Is there another class or something I need to add to return state name? thankyou

 

NAME MYMAP
  

  SIZE 500 400
  STATUS ON
  
  EXTENT -5696501 1923039 5696501 11022882
  SIZE 500 200
  UNITS METERS
  SHAPEPATH "data"
   
  WEB
   IMAGEPATH "c:\root\site\ms\tmp\"
   IMAGEURL "http://localhost/ms/tmp/"
  END
  
  LAYER
   NAME States
   TYPE POLYGON
   STATUS ON
   DATA states
   CLASS
    COLOR 255 247 188
    OUTLINECOLOR 0 0 0
   END
  END
  



---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
--0-62230597-1063382825=:40550
Content-Type: text/html; charset=us-ascii

<P>Hello All,</P>
<P>I believe I have tracked down my query by point problem.&nbsp; I think it is my .map file.&nbsp; What I am wanting to do is to return the state name (field is something like state_name in shape file) when the user clicks on it.&nbsp; But I am getting "no records found" when I click on the state.&nbsp; Here is my .map file.&nbsp; Is there another class or something I need to add to return state name? thankyou</P>
<P>&nbsp;</P>
<P>NAME&nbsp;MYMAP<BR>&nbsp;&nbsp;</P>
<P>&nbsp; SIZE 500 400<BR>&nbsp;&nbsp;STATUS ON<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;EXTENT -5696501 1923039 5696501 11022882<BR>&nbsp;&nbsp;SIZE 500 200<BR>&nbsp;&nbsp;UNITS METERS<BR>&nbsp;&nbsp;SHAPEPATH "data"<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;WEB<BR>&nbsp;&nbsp;&nbsp;IMAGEPATH "c:\root\site\ms\tmp\"<BR>&nbsp;&nbsp;&nbsp;IMAGEURL "<A href="http://localhost/ms/tmp/">http://localhost/ms/tmp/</A>"<BR>&nbsp;&nbsp;END<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;LAYER<BR>&nbsp;&nbsp;&nbsp;NAME States<BR>&nbsp;&nbsp;&nbsp;TYPE POLYGON<BR>&nbsp;&nbsp;&nbsp;STATUS ON<BR>&nbsp;&nbsp;&nbsp;DATA states<BR>&nbsp;&nbsp;&nbsp;CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;COLOR 255 247 188<BR>&nbsp;&nbsp;&nbsp;&nbsp;OUTLINECOLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp;END<BR>&nbsp;&nbsp;END<BR>&nbsp;&nbsp;<BR></P><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/evt=10469/*http://sitebuilder.yahoo.com">Yahoo! SiteBuilder</a> - Free, easy-to-use web site design software
--0-62230597-1063382825=:40550--



More information about the mapserver-users mailing list