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

Arun ! arun_usctrojan at yahoo.com
Sun Jun 13 13:48:39 PDT 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>        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> </DIV>
<DIV>I used just one layer.Im really stuck.Someone please help me.</DIV>
<DIV>Mycode is as follows</DIV>
<DIV> </DIV>
<DIV>map<BR>  extent -124.409591 32.534156 -114.134426539 42.009518<BR>  imagecolor 255 255 255<BR>  name "calione"<BR>  shapepath "data"<BR>  size 600 600<BR>  status on<BR>  symbolset "symbols/all.sym"<BR>  units meters<BR>  # 1 scalebar #none<BR>  scalebar<BR>    backgroundcolor 255 255 0<BR>    color 255 255 255<BR>    imagecolor 255 255 255<BR>    intervals 4<BR>    outlinecolor 0 0 0<BR>    size 200 7<BR>    status on<BR>    style 0<BR>    transparent true<BR>    units meters<BR>    # 1 label #none<BR>    label<BR>      backgroundcolor 0 0 0<BR>      color 255 255 0<BR>      size tiny<BR>    end<BR>  end<BR>  # 2 layer zt06_d00<BR> 
 layer<BR>    classitem "AREA"<BR>    data "zt06_d00"<BR>    footer "zt06_d00_footer.html"<BR>    group "zt06_d00"<BR>    header "zt06_d00_header.html"<BR>    labelcache on<BR>    labelitem "AREA"<BR>    name "zt06_d00"<BR>    postlabelcache true<BR>    queryitem "AREA"<BR>    status on<BR>    type polygon<BR>    # 1 query #none<BR>    query<BR>      template "zt06_d00_query.html"<BR>    end<BR>    # 2 class zt06_d00_1<BR>    class<BR>      backgroundcolor 128 128 128<BR>      color 128 128 128<BR>      name "zt06_d00_1"<BR>      outlinecolor 0 0 0<BR>    end<BR>  end<BR>  # 3 web
 calione.html<BR>  web<BR>    footer "calione_footer.html"<BR>    header "calione_header.html"<BR>    imagepath "C:Program"<BR>    imageurl "/tmp/"<BR>    template "calione.html"<BR>  end<BR>  # 4 querymap hilite<BR>  querymap<BR>    color 255 0 0<BR>    size 200 200<BR>    status on<BR>    style hilite<BR>  end<BR>  # 5 reference graphics/reference.gif<BR>  reference<BR>    color -1 -1 -1<BR>    extent -124.409591 32.534156 -114.134426539 42.009518<BR>    image "graphics/reference.gif"<BR>    outlinecolor 255 0 0<BR>    size 120 120<BR>    status on<BR>  end<BR>  # 6 legend #none<BR>  legend<BR>    keysize 18 12<BR>    status on<BR>    # 1 label
 #none<BR>    label<BR>      color 0 0 89<BR>      size medium<BR>      type bitmap<BR>    end<BR>  end<BR>end</DIV>
<DIV> </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