[Mapserver-users] Compilation Error-New user Plz help

Arun ! arun_usctrojan at yahoo.com
Sun Jun 13 16:48:39 EDT 2004


--0-1465350539-1087159719=:44321
Content-Type: text/plain; charset=us-ascii

Hi,
        Im a new user of Mapserver.I tested my mapserver and it works fine .also it works fine for the mapserver demo.I tried to create a map of cali and i keep getting this one compilation error.

loadLayer(): Unknown identifier. Parsing error near (queryitem):(line 40) 
 
I used just one layer.Im really stuck.Someone please help me.
Mycode is as follows
 
map
  extent -124.409591 32.534156 -114.134426539 42.009518
  imagecolor 255 255 255
  name "calione"
  shapepath "data"
  size 600 600
  status on
  symbolset "symbols/all.sym"
  units meters
  # 1 scalebar #none
  scalebar
    backgroundcolor 255 255 0
    color 255 255 255
    imagecolor 255 255 255
    intervals 4
    outlinecolor 0 0 0
    size 200 7
    status on
    style 0
    transparent true
    units meters
    # 1 label #none
    label
      backgroundcolor 0 0 0
      color 255 255 0
      size tiny
    end
  end
  # 2 layer zt06_d00
  layer
    classitem "AREA"
    data "zt06_d00"
    footer "zt06_d00_footer.html"
    group "zt06_d00"
    header "zt06_d00_header.html"
    labelcache on
    labelitem "AREA"
    name "zt06_d00"
    postlabelcache true
    queryitem "AREA"
    status on
    type polygon
    # 1 query #none
    query
      template "zt06_d00_query.html"
    end
    # 2 class zt06_d00_1
    class
      backgroundcolor 128 128 128
      color 128 128 128
      name "zt06_d00_1"
      outlinecolor 0 0 0
    end
  end
  # 3 web calione.html
  web
    footer "calione_footer.html"
    header "calione_header.html"
    imagepath "C:Program"
    imageurl "/tmp/"
    template "calione.html"
  end
  # 4 querymap hilite
  querymap
    color 255 0 0
    size 200 200
    status on
    style hilite
  end
  # 5 reference graphics/reference.gif
  reference
    color -1 -1 -1
    extent -124.409591 32.534156 -114.134426539 42.009518
    image "graphics/reference.gif"
    outlinecolor 255 0 0
    size 120 120
    status on
  end
  # 6 legend #none
  legend
    keysize 18 12
    status on
    # 1 label #none
    label
      color 0 0 89
      size medium
      type bitmap
    end
  end
end
 


Arun Chidambaram
1247 W 30th street Apt 40l
Los Angeles CA-90007
Cell -323-620-6796 
www.arun.biz

		
---------------------------------
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger
--0-1465350539-1087159719=:44321
Content-Type: text/html; charset=us-ascii

<DIV>Hi,</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Im a new user of Mapserver.I tested my mapserver and it works fine .also it works fine for the mapserver demo.I tried to create a map of cali and i keep getting this one compilation error.</DIV>
<DIV><BR>loadLayer(): Unknown identifier. Parsing error near (queryitem):(line 40) </DIV>
<DIV>&nbsp;</DIV>
<DIV>I used just one layer.Im really stuck.Someone please help me.</DIV>
<DIV>Mycode is as follows</DIV>
<DIV>&nbsp;</DIV>
<DIV>map<BR>&nbsp; extent -124.409591 32.534156 -114.134426539 42.009518<BR>&nbsp; imagecolor 255 255 255<BR>&nbsp; name "calione"<BR>&nbsp; shapepath "data"<BR>&nbsp; size 600 600<BR>&nbsp; status on<BR>&nbsp; symbolset "symbols/all.sym"<BR>&nbsp; units meters<BR>&nbsp; # 1 scalebar #none<BR>&nbsp; scalebar<BR>&nbsp;&nbsp;&nbsp; backgroundcolor 255 255 0<BR>&nbsp;&nbsp;&nbsp; color 255 255 255<BR>&nbsp;&nbsp;&nbsp; imagecolor 255 255 255<BR>&nbsp;&nbsp;&nbsp; intervals 4<BR>&nbsp;&nbsp;&nbsp; outlinecolor 0 0 0<BR>&nbsp;&nbsp;&nbsp; size 200 7<BR>&nbsp;&nbsp;&nbsp; status on<BR>&nbsp;&nbsp;&nbsp; style 0<BR>&nbsp;&nbsp;&nbsp; transparent true<BR>&nbsp;&nbsp;&nbsp; units meters<BR>&nbsp;&nbsp;&nbsp; # 1 label #none<BR>&nbsp;&nbsp;&nbsp; label<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; backgroundcolor 0 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; color 255 255 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; size tiny<BR>&nbsp;&nbsp;&nbsp; end<BR>&nbsp; end<BR>&nbsp; # 2 layer zt06_d00<BR>&nbsp;
 layer<BR>&nbsp;&nbsp;&nbsp; classitem "AREA"<BR>&nbsp;&nbsp;&nbsp; data "zt06_d00"<BR>&nbsp;&nbsp;&nbsp; footer "zt06_d00_footer.html"<BR>&nbsp;&nbsp;&nbsp; group "zt06_d00"<BR>&nbsp;&nbsp;&nbsp; header "zt06_d00_header.html"<BR>&nbsp;&nbsp;&nbsp; labelcache on<BR>&nbsp;&nbsp;&nbsp; labelitem "AREA"<BR>&nbsp;&nbsp;&nbsp; name "zt06_d00"<BR>&nbsp;&nbsp;&nbsp; postlabelcache true<BR>&nbsp;&nbsp;&nbsp; queryitem "AREA"<BR>&nbsp;&nbsp;&nbsp; status on<BR>&nbsp;&nbsp;&nbsp; type polygon<BR>&nbsp;&nbsp;&nbsp; # 1 query #none<BR>&nbsp;&nbsp;&nbsp; query<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; template "zt06_d00_query.html"<BR>&nbsp;&nbsp;&nbsp; end<BR>&nbsp;&nbsp;&nbsp; # 2 class zt06_d00_1<BR>&nbsp;&nbsp;&nbsp; class<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; backgroundcolor 128 128 128<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; color 128 128 128<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name "zt06_d00_1"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; outlinecolor 0 0 0<BR>&nbsp;&nbsp;&nbsp; end<BR>&nbsp; end<BR>&nbsp; # 3 web
 calione.html<BR>&nbsp; web<BR>&nbsp;&nbsp;&nbsp; footer "calione_footer.html"<BR>&nbsp;&nbsp;&nbsp; header "calione_header.html"<BR>&nbsp;&nbsp;&nbsp; imagepath "C:Program"<BR>&nbsp;&nbsp;&nbsp; imageurl "/tmp/"<BR>&nbsp;&nbsp;&nbsp; template "calione.html"<BR>&nbsp; end<BR>&nbsp; # 4 querymap hilite<BR>&nbsp; querymap<BR>&nbsp;&nbsp;&nbsp; color 255 0 0<BR>&nbsp;&nbsp;&nbsp; size 200 200<BR>&nbsp;&nbsp;&nbsp; status on<BR>&nbsp;&nbsp;&nbsp; style hilite<BR>&nbsp; end<BR>&nbsp; # 5 reference graphics/reference.gif<BR>&nbsp; reference<BR>&nbsp;&nbsp;&nbsp; color -1 -1 -1<BR>&nbsp;&nbsp;&nbsp; extent -124.409591 32.534156 -114.134426539 42.009518<BR>&nbsp;&nbsp;&nbsp; image "graphics/reference.gif"<BR>&nbsp;&nbsp;&nbsp; outlinecolor 255 0 0<BR>&nbsp;&nbsp;&nbsp; size 120 120<BR>&nbsp;&nbsp;&nbsp; status on<BR>&nbsp; end<BR>&nbsp; # 6 legend #none<BR>&nbsp; legend<BR>&nbsp;&nbsp;&nbsp; keysize 18 12<BR>&nbsp;&nbsp;&nbsp; status on<BR>&nbsp;&nbsp;&nbsp; # 1 label
 #none<BR>&nbsp;&nbsp;&nbsp; label<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; color 0 0 89<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; size medium<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type bitmap<BR>&nbsp;&nbsp;&nbsp; end<BR>&nbsp; end<BR>end</DIV>
<DIV>&nbsp;</DIV><BR><BR><DIV>Arun Chidambaram</DIV>
<DIV>1247 W 30th street Apt 40l</DIV>
<DIV>Los Angeles CA-90007</DIV>
<DIV>Cell -323-620-6796 </DIV>
<DIV><A href="http://www.arun.biz">www.arun.biz</A></DIV><p>
		<hr size=1>Do you Yahoo!?<br>Friends.  Fun. <a href="http://messenger.yahoo.com/">Try the all-new Yahoo! Messenger</a>
--0-1465350539-1087159719=:44321--



More information about the mapserver-users mailing list