[Mapserver-users] .map file help

Lowther, David W dlowther at ou.edu
Fri Sep 12 09:43:47 PDT 2003


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C3794D.096EE0D0
Content-Type: text/plain

you're also going to need a template in your layer even if its a dummy...

David Lowther 
Software Engineer 
GEO Information Systems 
University of Oklahoma 
dlowther at ou.edu 
(405) 325-3131 
http://www.geo.ou.edu <http://www.geo.ou.edu/>  


-----Original Message-----
From: har mar [mailto:shaz_bot42 at yahoo.com] 
Sent: Friday, September 12, 2003 11:07 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] .map file help



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/ <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!  <http://us.rd.yahoo.com/evt=10469/*http://sitebuilder.yahoo.com>
SiteBuilder - Free, easy-to-use web site design software


------_=_NextPart_001_01C3794D.096EE0D0
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1226" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D828594616-12092003><FONT face=3DArial =
color=3D#0000ff size=3D2>you're=20
also going to need a template in your layer even if its a=20
dummy...</FONT></SPAN></DIV>
<P><FONT face=3DArial size=3D2>David Lowther</FONT> <BR><FONT =
face=3DArial=20
size=3D2>Software Engineer</FONT> <BR><FONT face=3DArial size=3D2>GEO =
Information=20
Systems</FONT> <BR><FONT face=3DArial size=3D2>University of =
Oklahoma</FONT>=20
<BR><FONT face=3DArial size=3D2>dlowther at ou.edu</FONT> <BR><FONT =
face=3DArial=20
size=3D2>(405) 325-3131</FONT> <BR><FONT face=3DArial size=3D2><A=20
href=3D"http://www.geo.ou.edu/" =
target=3D_blank>http://www.geo.ou.edu</A></FONT>=20
</P><BR>
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> har =
mar=20
  [mailto:shaz_bot42 at yahoo.com] <BR><B>Sent:</B> Friday, September 12, =
2003=20
  11:07 AM<BR><B>To:</B> =
mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B>=20
  [Mapserver-users] .map file help<BR><BR></FONT></DIV>
  <P>Hello All,</P>
  <P>I believe I have tracked down my query by point problem.  I =
think it=20
  is my .map file.  What I am wanting to do is to return the state =
name=20
  (field is something like state_name in shape file) when the user =
clicks on=20
  it.  But I am getting "no records found" when I click on the =
state. =20
  Here is my .map file.  Is there another class or something I =
need to add=20
  to return state name? thankyou</P>
  <P> </P>
  <P>NAME MYMAP<BR>  </P>
  <P>  SIZE 500 400<BR>  STATUS=20
  ON<BR>  <BR>  EXTENT -5696501 1923039 5696501=20
  11022882<BR>  SIZE 500 200<BR>  UNITS=20
  METERS<BR>  SHAPEPATH=20
  =
"data"<BR>   <BR>  WEB<BR>   IMA=
GEPATH=20
  "c:\root\site\ms\tmp\"<BR>   IMAGEURL "<A=20
  =
href=3D"http://localhost/ms/tmp/">http://localhost/ms/tmp/</A>"<BR>&nbsp=
; END<BR>  <BR>  LAYER<BR>   NAM=
E=20
  States<BR>   TYPE POLYGON<BR>   STATUS=20
  ON<BR>   DATA=20
  states<BR>   CLASS<BR>    COLOR =
255 247=20
  188<BR>    OUTLINECOLOR 0 0=20
  0<BR>   END<BR>  END<BR>  <BR></P>
  <P>
  <HR SIZE=3D1>
  Do you Yahoo!?<BR><A=20
  =
href=3D"http://us.rd.yahoo.com/evt=3D10469/*http://sitebuilder.yahoo.com=
">Yahoo!=20
  SiteBuilder</A> - Free, easy-to-use web site design=20
software</BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C3794D.096EE0D0--



More information about the MapServer-users mailing list