<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE>@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV>
<DIV><SPAN class=317205719-28062005><FONT face=Arial color=#0000ff 
size=2>Wendy,</FONT></SPAN></DIV>
<DIV><SPAN class=317205719-28062005><FONT face=Arial color=#0000ff size=2>your 
URL is combining basic MapServer CGI commands (e.g. mode=scalebar) with OGC WMS 
requests (e.g. request=GetMap).</FONT></SPAN></DIV>
<DIV><SPAN class=317205719-28062005><FONT face=Arial color=#0000ff size=2>Stick 
to basic mapserver CGI commands to start with to see your 
map</FONT></SPAN></DIV>
<DIV><SPAN class=317205719-28062005><FONT face=Arial color=#0000ff size=2>e.g. 
something like:</FONT></SPAN></DIV>
<DIV><SPAN class=317205719-28062005><FONT face=Arial color=#0000ff size=2><A 
href="http://192.168.3.102/cgi-bin/mapserv?map=/var/www/html/mapserver/service/prdc-demo.map&amp;mode=map&amp;layers=cobounds">http://192.168.3.102/cgi-bin/mapserv?map=/var/www/html/mapserver/service/prdc-demo.map&amp;mode=map&amp;layers=cobounds</A></FONT></SPAN></DIV>
<DIV><SPAN class=317205719-28062005><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=317205719-28062005><FONT face=Arial color=#0000ff size=2>Then 
once you have that, move onto setting up the GetMap request.</FONT></SPAN></DIV>
<DIV><SPAN class=317205719-28062005><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=317205719-28062005><SPAN class=913200020-28062005><FONT 
face=Arial color=#0000ff size=2>Also - I don't think mapserver will like your 
extent (I don't think you can do the <FONT color=#000000>e+006 part, but double 
check this)</FONT>:</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=317205719-28062005><SPAN class=913200020-28062005><FONT 
face=Arial size=2>EXTENT 486716 5.01368e+006 572241 
5.07531e+006</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=317205719-28062005><SPAN class=913200020-28062005><FONT 
face=Arial size=2>I think you need to check your online resource as well (that's 
for the OGC WMS request part)</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=317205719-28062005><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=317205719-28062005><FONT face=Arial color=#0000ff size=2>for 
reference for Mapserver CGI:</FONT></SPAN></DIV>
<DIV><SPAN class=317205719-28062005><FONT face=Arial color=#0000ff size=2><A 
href="http://mapserver.gis.umn.edu/doc44/cgi-reference.html">http://mapserver.gis.umn.edu/doc44/cgi-reference.html</A></FONT></SPAN></DIV>
<DIV><SPAN class=317205719-28062005><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=317205719-28062005><FONT face=Arial color=#0000ff 
size=2>reference for OGC WMS requests:</FONT></SPAN></DIV>
<DIV><SPAN class=317205719-28062005><FONT face=Arial color=#0000ff size=2><A 
href="http://mapserver.gis.umn.edu/doc44/wms-server-howto.html">http://mapserver.gis.umn.edu/doc44/wms-server-howto.html</A></FONT></SPAN></DIV>
<DIV><SPAN class=317205719-28062005><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=317205719-28062005><SPAN class=913200020-28062005><FONT 
face=Arial color=#0000ff size=2>Good luck - I think you're very 
close.</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=317205719-28062005><SPAN class=913200020-28062005><FONT 
face=Arial color=#0000ff size=2>D. Pagurek</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=317205719-28062005><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> UMN MapServer 
  Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>Wendy 
  Arbuckle<BR><B>Sent:</B> Tuesday, June 28, 2005 9:58 AM<BR><B>To:</B> 
  MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> 
  [UMN_MAPSERVER-USERS]<BR><BR></FONT></DIV>
  <DIV class=Section1>
  <P class=MsoNormal style="LINE-HEIGHT: 14.4pt"><FONT face=Arial color=black 
  size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial">i am a 
  super newbie (as you will see from my code)<BR><BR>i'm not sure if i can even 
  get my scalebar to show up without using some<BR>form of html code<BR><BR>i am 
  using a wms server<BR><BR>this is some of my code before the layer 
  definitions:<BR><BR>#<BR># Start of map file<BR>#<BR><BR>MAP<BR># NAME 
  PRDC-demo<BR><BR># background color of image if transparency<BR># is not 
  requested<BR>IMAGECOLOR 174 206 180<BR><BR># default output image 
  dimensions<BR>SIZE 600 400<BR><BR># always returns a map<BR>STATUS ON<BR><BR># 
  set top level projection<BR>PROJECTION<BR>&nbsp; 
  "init=epsg:2961"<BR>END<BR><BR>#start of the scalebar<BR>SCALEBAR<BR>&nbsp; 
  STATUS EMBED<BR>&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp; SIZE 
  tiny<BR>&nbsp;&nbsp;&nbsp; COLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp; OUTLINECOLOR 255 
  255 255<BR>&nbsp; END<BR>&nbsp; STYLE 0<BR>&nbsp; INTERVALS 3<BR>&nbsp; SIZE 
  100 3<BR>&nbsp; COLOR 0 0 0<BR>&nbsp; BACKGROUNDCOLOR 255 255 255<BR>&nbsp; 
  OUTLINECOLOR 0 0 0<BR>&nbsp; UNITS MILES<BR>&nbsp; POSITION LR<BR>&nbsp; 
  TRANSPARENT TRUE<BR>&nbsp; #POSTLABELCACHE true<BR>END # 
  Scalebar<BR><BR><BR><BR><BR># image format options<BR>OUTPUTFORMAT<BR>&nbsp; 
  NAME png<BR>&nbsp; DRIVER "GD/PNG"<BR>&nbsp; MIMETYPE "image/png"<BR>&nbsp; 
  IMAGEMODE RGB<BR>&nbsp; EXTENSION "png"<BR>END<BR><BR><BR># minx miny maxx 
  maxy<BR># sets:<BR># 
  /WMT_MS_Capabilities/Capability/Layer/LatLonBoundingBox(@minx @miny<BR>@maxx 
  @maxx)<BR># EXTENT -180 -90 180 90 # World<BR>EXTENT 486716 5.01368e+006 
  572241 5.07531e+006<BR><BR># add def pointers for symbols<BR><BR>SYMBOLSET 
  "../etc/symbols/symbols.sym"<BR><BR>&nbsp; FONTSET&nbsp;&nbsp; 
  "../etc/fonts/fonts.txt"<BR><BR>SCALEBAR<BR>&nbsp; IMAGECOLOR 255 255 255<BR># 
  background color of the image placeholder<BR>&nbsp; 
  LABEL<BR>&nbsp;&nbsp;&nbsp; COLOR 0 0 0<BR># color of the labels indicating 
  the distance<BR>&nbsp;&nbsp;&nbsp; SIZE SMALL<BR># size of the 
  labels<BR>&nbsp; END<BR>&nbsp; SIZE 350 5<BR># sixe in pixels of the 
  scalebar<BR>&nbsp; COLOR 255 255 255<BR># color used in the scalebar<BR>&nbsp; 
  BACKGROUNDCOLOR 0 0 0<BR># background color of the drawn scalebar<BR>&nbsp; 
  OUTLINECOLOR 0 0 0<BR># outline color of the salebar<BR>&nbsp; UNITS 
  kilometers<BR># units to be used<BR>&nbsp; INTERVALS 5<BR># How many intervals 
  in total in the<BR># scalebar<BR>&nbsp; STATUS ON<BR># the scalebar is on by 
  default<BR>END<BR><BR>#<BR># Start of web interface 
  definition<BR>WEB<BR><BR>&nbsp; # this is the real filepath to the temp dir 
  for intermediate file<BR>creation<BR>&nbsp; IMAGEPATH 
  "/tmp/ms_tmp/"<BR><BR>&nbsp; # this is the web-accessible path to 
  IMAGEPATH<BR>&nbsp; IMAGEURL "/ms_tmp/"<BR><BR>&nbsp; HEADER 
  "../templates/query_header.html"<BR>&nbsp; FOOTER 
  "../templates/query_footer.html"<BR><BR>&nbsp; METADATA<BR><BR>&nbsp;&nbsp; 
  "map" "/var/www/html/mapserver/service/prdc-demo.map"<BR><BR>&nbsp;&nbsp; 
  "ows_schemas_location" "<A href="http://schemas.opengeospatial.net/" 
  target=_blank ?><FONT color=black><SPAN 
  style="COLOR: black">http://schemas.opengeospatial.net"</SPAN></FONT></A><BR><BR>&nbsp;&nbsp; 
  "ows_title" "Pictou County GIS demo"<BR><BR>&nbsp;&nbsp; "ows_abstract" 
  "Pictou County GIS demo.&nbsp; Enjoy!"<BR><BR>&nbsp;&nbsp; "ows_keywordlist" 
  "mapserver,ogc,workshop"<BR><BR>&nbsp;&nbsp; "ows_service_onlineresource" "<A 
  href="http://localhost/mapserver/index.html" target=_blank ?><FONT 
  color=black><SPAN 
  style="COLOR: black">http://localhost/mapserver/index.html"</SPAN></FONT></A><BR>&nbsp;&nbsp; 
  "ows_fees" "none"<BR>&nbsp;&nbsp; "ows_accessconstraints" 
  "none"<BR>&nbsp;&nbsp; "wms_contactperson" "Libo Feng"<BR>&nbsp;&nbsp; 
  "wms_contactorganization" "Pictou County"<BR>&nbsp;&nbsp; 
  "wms_contactposition" "Systems Scientist"<BR>&nbsp;&nbsp; "wms_addresstype" 
  "postal"<BR>&nbsp;&nbsp; "wms_address"&nbsp;&nbsp;&nbsp;&nbsp; "980 East River 
  rd."<BR>&nbsp;&nbsp; "wms_city" "New Glasgow"<BR>&nbsp;&nbsp; 
  "wms_stateorprovince" "Nova Scotia"<BR>&nbsp;&nbsp; "wms_postcode" 
  "B2H-2G3"<BR>&nbsp;&nbsp; "wms_country" "Canada"<BR>&nbsp;&nbsp; 
  "wms_contactvoicetelephone" "+01-905-336-4409"<BR>&nbsp;&nbsp; 
  "wms_contactfacsimiletelephone" "+01-905-336-4499"<BR>&nbsp; 
  "wms_contactelectronicmailaddress" "lfeng@prdc.com"<BR>&nbsp;&nbsp; "wms_srs" 
  "EPSG:4326"<BR>&nbsp;&nbsp; "wms_feature_info_mime_type"&nbsp; 
  "text/html"<BR>&nbsp;&nbsp; "wfs_srs" "EPSG:4326"<BR>&nbsp;&nbsp; 
  "wfs_namespace_uri" "<A href="http://localhost/mapserver" target=_blank 
  ?><FONT color=black><SPAN 
  style="COLOR: black">http://localhost/mapserver"</SPAN></FONT></A><BR>&nbsp;&nbsp; 
  "wfs_namespace_prefix" "ms_ogc"<BR>&nbsp;&nbsp; "wcs_label" "Sample OWS for 
  MapServer OGC Web Services Workshop"<BR>&nbsp;&nbsp; "wcs_description" "Sample 
  OWS for MapServer OGC Web Services Workshop.<BR>Enjoy!"<BR>&nbsp; 
  "WMS_SLD_SYMBOL_URL" "<A href="http://wendy/dot.png" target=_blank ?><FONT 
  color=black><SPAN 
  style="COLOR: black">http://wendy/dot.png"</SPAN></FONT></A><BR><BR><BR><BR>&nbsp;&nbsp; 
  # sets:<BR>&nbsp;&nbsp; # 
  /WCS_Capabilities/Service/metadataLink/@xlink:href<BR>&nbsp;&nbsp; 
  "wcs_metadatalink_href" "<A href="http://devgeo.cciw.ca/index.html" 
  target=_blank ?><FONT color=black><SPAN 
  style="COLOR: black">http://devgeo.cciw.ca/index.html"</SPAN></FONT></A><BR>&nbsp;&nbsp; 
  END<BR>END<BR><BR># hilite map for GetFeatureInfo "info_format=text/html"<BR># 
  requests<BR><BR>QUERYMAP<BR>&nbsp; STATUS ON<BR>&nbsp; SIZE 200 200<BR>&nbsp; 
  STYLE HILITE<BR>&nbsp; COLOR 255 255 0<BR>END<BR><BR><BR># set defaults for 
  GetLegendGraphic requests<BR>LEGEND<BR>&nbsp; LABEL<BR>&nbsp;&nbsp; TYPE 
  BITMAP<BR>&nbsp;&nbsp; SIZE MEDIUM<BR>&nbsp;&nbsp; COLOR 222 0 
  0<BR>&nbsp;&nbsp; POSITION cc<BR>&nbsp; END<BR>END<BR><BR>and this is the 
  address i am using for my mapserver:<BR><BR>"<A 
  href="http://192.168.3.102/cgi-bin/mapserv" target=_blank><FONT 
  color=black><SPAN 
  style="COLOR: black">http://192.168.3.102/cgi-bin/mapserv</SPAN></FONT></A>?<BR>map=/var/www/html/mapserver/service/prdc-<BR>demo.map&amp;version=1.1.1&amp;service=WMS&amp;request=GetMap&amp;srs=EPSG:2961&amp;mode=scaleb<BR>ar&amp;width=600&amp;height=400&amp;layers=cobounds,roads&amp;SLD=<A 
  href="http://192.168.3.102/maps" target=_blank><FONT color=black><SPAN 
  style="COLOR: black">http://192.168.3.102/maps</SPAN></FONT></A><BR>erver/service/sld_line_width.xml"<BR><BR><BR><BR>i 
  am probably missing something simple<BR><BR>any direction would be 
  appreciated<BR><BR>thnx<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>