[Mapserver-users] .map file help

har mar shaz_bot42 at yahoo.com
Fri Sep 12 09:07:05 PDT 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.  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</P>
<P> </P>
<P>NAME MYMAP<BR>  </P>
<P>  SIZE 500 400<BR>  STATUS ON<BR>  <BR>  EXTENT -5696501 1923039 5696501 11022882<BR>  SIZE 500 200<BR>  UNITS METERS<BR>  SHAPEPATH "data"<BR>   <BR>  WEB<BR>   IMAGEPATH "c:\root\site\ms\tmp\"<BR>   IMAGEURL "<A href="http://localhost/ms/tmp/">http://localhost/ms/tmp/</A>"<BR>  END<BR>  <BR>  LAYER<BR>   NAME States<BR>   TYPE POLYGON<BR>   STATUS ON<BR>   DATA states<BR>   CLASS<BR>    COLOR 255 247 188<BR>    OUTLINECOLOR 0 0 0<BR>   END<BR>  END<BR>  <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