[mapserver-users] status bar in no appearing !
nida Khan
nida@webstar.co.uk
Wed, 27 Nov 2002 14:37:04 -0000
This is a multi-part message in MIME format.
------=_NextPart_000_0141_01C29622.74631460
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi List,
I'm a new bie in GIS world, I'm trying small task before I jump into =
anything big.
so far I managed to get the map,legend working. now when I tried to put =
the scalebar, nothing happens, its not printing the image...
it seems like it get the image path but does not create one!
I'm sure its something small that I'm missing, but what???
here is code of my map and html file.
NAME WALES
EXTENT 127000.0 160000.0 380000.0 402000.0
SIZE 400 400
FONTSET "/var/www/html/wales/fonts/fonts.list"
UNITS KILOMETERS
WEB
TEMPLATE wales2.html
IMAGEPATH "/var/www/html/wales/tmp/"
IMAGEURL "/wales/tmp/"
END
QUERYMAP
SIZE 200 200
STATUS ON
STYLE HILITE
COLOR 255 0 0
END
LEGEND
STATUS ON
LABEL
COLOR 0 0 0
SIZE MEDIUM
ANTIALIAS TRUE
END
END
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 255 255 255
SIZE small =20
END
STYLE 1
SIZE 160 2
COLOR 255 255 255
UNITS KILOMETERS
INTERVALS 4
TRANSPARENT ON
STATUS TRUE
END
<some layers>
html file
<html>
<head>
<title>Wales</title>
</head>
<body>
<h3>Wales from Postgis with Zoom</h3>
<b>SEARCH WINDOW</b>: [imgext]<br>
<b>QUERY POINT</b>: ([img.x], [img.y]) image coordinates or ([mapx], =
[mapy]) map coordinates<br>
<b>QUERY METRICS</b>: number of layers with results=3D[nl], total number =
of results=3D[nr]<br><br>
<p>
<hr>
<p>
<form method=3D"GET" action=3D"/cgi-bin/mapserv">
<input type=3D"hidden" name=3D"map" value=3D"[map]">
<input type=3D"hidden" name=3D"imgext" value=3D"[mapext]">
<table border=3D1 cellpadding=3D3>
<tr>
<td align=3Dcenter>
<input type=3D"image" name=3D"img" src=3D"[img]" border=3D"0">
</td>
</tr>
<tr>
<td align=3D"left" colspan=3D"2">
<img src=3D"[scalebar]">
</td>
</tr>
</table> =20
</form>
Regards
Nida
------=_NextPart_000_0141_01C29622.74631460
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi List,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I'm a new bie in GIS world, I'm trying small task =
before I=20
jump into anything big.</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>so far I managed to get the map,legend working. now =
when I=20
tried to put the scalebar, nothing happens, its not printing the=20
image...</FONT></DIV>
<DIV><FONT size=3D2>it seems like it get the image path but does not =
create=20
one!</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I'm sure its something small that I'm missing, but=20
what???</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>here is code of my map and html file.</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>NAME WALES<BR>EXTENT 127000.0 160000.0 380000.0=20
402000.0<BR>SIZE 400 400<BR>FONTSET=20
"/var/www/html/wales/fonts/fonts.list"<BR>UNITS KILOMETERS</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>WEB<BR> TEMPLATE wales2.html<BR> =
IMAGEPATH=20
"/var/www/html/wales/tmp/"<BR> IMAGEURL =
"/wales/tmp/"<BR>END</FONT></DIV>
<DIV> </DIV><FONT size=3D2>
<DIV><BR>QUERYMAP<BR> SIZE 200 200<BR> STATUS ON<BR> =
STYLE=20
HILITE<BR> COLOR 255 0 0<BR>END</DIV>
<DIV> </DIV>
<DIV>LEGEND<BR> STATUS ON<BR> LABEL<BR> =
COLOR 0 0=20
0<BR> SIZE MEDIUM<BR> ANTIALIAS=20
TRUE<BR> END<BR>END</DIV>
<DIV> </DIV>
<DIV><BR>SCALEBAR<BR> IMAGECOLOR 255 255 255<BR> =20
LABEL<BR> COLOR 255 255 255<BR> SIZE =
small <BR> END<BR> STYLE 1<BR> SIZE =
160=20
2<BR> COLOR 255 255 255<BR> UNITS KILOMETERS<BR> =
INTERVALS=20
4<BR> TRANSPARENT ON<BR> STATUS TRUE<BR>END</DIV>
<DIV> </DIV>
<DIV><some layers></DIV>
<DIV> </DIV>
<DIV>html file</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><html><BR> <head><BR> =20
<title>Wales</title><BR> </head></DIV>
<DIV> </DIV>
<DIV> <body><BR><h3>Wales from Postgis with=20
Zoom</h3></DIV>
<DIV> </DIV>
<DIV><b>SEARCH WINDOW</b>: =
[imgext]<br><BR><b>QUERY=20
POINT</b>: ([img.x], [img.y]) image coordinates or ([mapx], =
[mapy]) map=20
coordinates<br><BR><b>QUERY METRICS</b>: number of =
layers with=20
results=3D[nl], total number of=20
results=3D[nr]<br><br><BR><p><BR><hr><BR><p>=
;</DIV>
<DIV> </DIV>
<DIV> <form method=3D"GET"=20
action=3D"/cgi-bin/mapserv"></DIV>
<DIV> </DIV>
<DIV> <input type=3D"hidden" name=3D"map"=20
value=3D"[map]"><BR> <input type=3D"hidden" =
name=3D"imgext"=20
value=3D"[mapext]"></DIV>
<DIV> </DIV>
<DIV> <table border=3D1 cellpadding=3D3></DIV>
<DIV> </DIV>
<DIV> <tr><BR> <td=20
align=3Dcenter><BR> <input =
type=3D"image"=20
name=3D"img" src=3D"[img]" border=3D"0"><BR> =20
</td><BR> </tr><BR> =20
<tr><BR> <td =
align=3D"left"=20
colspan=3D"2"><BR> <img=20
src=3D"[scalebar]"><BR> =20
</td><BR> </tr><BR> =20
</table> <BR></form></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Regards</DIV>
<DIV>Nida</FONT></DIV></BODY></HTML>
------=_NextPart_000_0141_01C29622.74631460--