<!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&mode=map&layers=cobounds">http://192.168.3.102/cgi-bin/mapserv?map=/var/www/html/mapserver/service/prdc-demo.map&mode=map&layers=cobounds</A></FONT></SPAN></DIV>
<DIV><SPAN class=317205719-28062005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </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> </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> </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> </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> </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> </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>
"init=epsg:2961"<BR>END<BR><BR>#start of the scalebar<BR>SCALEBAR<BR>
STATUS EMBED<BR> LABEL<BR> SIZE
tiny<BR> COLOR 0 0 0<BR> OUTLINECOLOR 255
255 255<BR> END<BR> STYLE 0<BR> INTERVALS 3<BR> SIZE
100 3<BR> COLOR 0 0 0<BR> BACKGROUNDCOLOR 255 255 255<BR>
OUTLINECOLOR 0 0 0<BR> UNITS MILES<BR> POSITION LR<BR>
TRANSPARENT TRUE<BR> #POSTLABELCACHE true<BR>END #
Scalebar<BR><BR><BR><BR><BR># image format options<BR>OUTPUTFORMAT<BR>
NAME png<BR> DRIVER "GD/PNG"<BR> MIMETYPE "image/png"<BR>
IMAGEMODE RGB<BR> 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> FONTSET
"../etc/fonts/fonts.txt"<BR><BR>SCALEBAR<BR> IMAGECOLOR 255 255 255<BR>#
background color of the image placeholder<BR>
LABEL<BR> COLOR 0 0 0<BR># color of the labels indicating
the distance<BR> SIZE SMALL<BR># size of the
labels<BR> END<BR> SIZE 350 5<BR># sixe in pixels of the
scalebar<BR> COLOR 255 255 255<BR># color used in the scalebar<BR>
BACKGROUNDCOLOR 0 0 0<BR># background color of the drawn scalebar<BR>
OUTLINECOLOR 0 0 0<BR># outline color of the salebar<BR> UNITS
kilometers<BR># units to be used<BR> INTERVALS 5<BR># How many intervals
in total in the<BR># scalebar<BR> STATUS ON<BR># the scalebar is on by
default<BR>END<BR><BR>#<BR># Start of web interface
definition<BR>WEB<BR><BR> # this is the real filepath to the temp dir
for intermediate file<BR>creation<BR> IMAGEPATH
"/tmp/ms_tmp/"<BR><BR> # this is the web-accessible path to
IMAGEPATH<BR> IMAGEURL "/ms_tmp/"<BR><BR> HEADER
"../templates/query_header.html"<BR> FOOTER
"../templates/query_footer.html"<BR><BR> METADATA<BR><BR>
"map" "/var/www/html/mapserver/service/prdc-demo.map"<BR><BR>
"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>
"ows_title" "Pictou County GIS demo"<BR><BR> "ows_abstract"
"Pictou County GIS demo. Enjoy!"<BR><BR> "ows_keywordlist"
"mapserver,ogc,workshop"<BR><BR> "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>
"ows_fees" "none"<BR> "ows_accessconstraints"
"none"<BR> "wms_contactperson" "Libo Feng"<BR>
"wms_contactorganization" "Pictou County"<BR>
"wms_contactposition" "Systems Scientist"<BR> "wms_addresstype"
"postal"<BR> "wms_address" "980 East River
rd."<BR> "wms_city" "New Glasgow"<BR>
"wms_stateorprovince" "Nova Scotia"<BR> "wms_postcode"
"B2H-2G3"<BR> "wms_country" "Canada"<BR>
"wms_contactvoicetelephone" "+01-905-336-4409"<BR>
"wms_contactfacsimiletelephone" "+01-905-336-4499"<BR>
"wms_contactelectronicmailaddress" "lfeng@prdc.com"<BR> "wms_srs"
"EPSG:4326"<BR> "wms_feature_info_mime_type"
"text/html"<BR> "wfs_srs" "EPSG:4326"<BR>
"wfs_namespace_uri" "<A href="http://localhost/mapserver" target=_blank
?><FONT color=black><SPAN
style="COLOR: black">http://localhost/mapserver"</SPAN></FONT></A><BR>
"wfs_namespace_prefix" "ms_ogc"<BR> "wcs_label" "Sample OWS for
MapServer OGC Web Services Workshop"<BR> "wcs_description" "Sample
OWS for MapServer OGC Web Services Workshop.<BR>Enjoy!"<BR>
"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>
# sets:<BR> #
/WCS_Capabilities/Service/metadataLink/@xlink:href<BR>
"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>
END<BR>END<BR><BR># hilite map for GetFeatureInfo "info_format=text/html"<BR>#
requests<BR><BR>QUERYMAP<BR> STATUS ON<BR> SIZE 200 200<BR>
STYLE HILITE<BR> COLOR 255 255 0<BR>END<BR><BR><BR># set defaults for
GetLegendGraphic requests<BR>LEGEND<BR> LABEL<BR> TYPE
BITMAP<BR> SIZE MEDIUM<BR> COLOR 222 0
0<BR> POSITION cc<BR> 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&version=1.1.1&service=WMS&request=GetMap&srs=EPSG:2961&mode=scaleb<BR>ar&width=600&height=400&layers=cobounds,roads&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> </o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>