<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<div>
<div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 color=navy
face="Times New Roman"><span style='font-size:12.0pt;color:navy'>The sample
request below contains an unwanted ampersand (&) directly after the question
mark (?). This probably interferes with the detection of the “REQUEST”
parameter.<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 color=navy
face="Times New Roman"><span style='font-size:12.0pt;color:navy'>I tried
removing the ampersand (I also had to change “LAYERS=Zoning_2005”
to “LAYERS=Layers/Zoning_2005”) and I got back a valid, but empty
image, without being prompted for authentication.<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 color=navy
face="Times New Roman"><span style='font-size:12.0pt;color:navy'>This is the
request I made:<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 color=navy
face="Times New Roman"><span style='font-size:12.0pt;color:navy'><a
href="http://12.144.53.43/mapguide/mapagent/mapagent.fcgi?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=Layers/Zoning_2005&STYLES=default&FORMAT=image/gif&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-74.77294921875,40.613952441166596,-74.761962890625,40.622291783092706&WIDTH=256&HEIGHT=256&reaspect=false">http://12.144.53.43/mapguide/mapagent/mapagent.fcgi?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=Layers/Zoning_2005&STYLES=default&FORMAT=image/gif&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-74.77294921875,40.613952441166596,-74.761962890625,40.622291783092706&WIDTH=256&HEIGHT=256&reaspect=false<o:p></o:p></a></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 color=navy
face="Times New Roman"><span style='font-size:12.0pt;color:navy'>Chris.</span></font><br>
<br>
----- Original Message ----<br>
From: Brian Flood <BFLOOD@SPATIALDATALOGIC.COM><br>
To: "users@mapguide.osgeo.org" <users@mapguide.osgeo.org><br>
Sent: Tuesday, March 28, 2006 11:22:03 AM<br>
Subject: [mapguide-users] RE: Newbie Questions<o:p></o:p></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>thanks<br>
<br>
yea, it does contain both a REQUEST and SERVICE parameter...<br>
<br>
I am just typing the request into the browser directly, I should get back<br>
the image like any other WMS service.<br>
<a
href="http://12.144.53.43/mapguide/mapagent/mapagent.fcgi?&REQUEST=GetMap&SERVICE"
target="_blank">http://12.144.53.43/mapguide/mapagent/mapagent.fcgi?&REQUEST=GetMap&SERVICE</a>=<br>
WMS&VERSION=1.1.1&LAYERS=Zoning_2005&STYLES=default&FORMAT=image/gif&BGCOLOR<br>
=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-74.77294921875,40.61395244116<br>
6596,-74.761962890625,40.622291783092706&WIDTH=256&HEIGHT=256&reaspect=false<br>
<br>
I've tried it without the "reaspect" parameter as well...<br>
<br>
this is from the Error log:<br>
<2006-03-28T14:10:04> Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.2;<br>
SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR
2.0.50727) 12.144.53.43<br>
<br>
Error: Session has expired or is invalid. Please log in again.<br>
StackTrace:<br>
- MgOpAuthenticate.Execute line 111 file<br>
c:\build_tux_area\mgdev\server\src\services\site\OpAuthenticate.cpp<br>
- MgSecurityManager.Authenticate line 227 file<br>
c:\build_tux_area\mgdev\server\src\common\manager\SecurityManager.cpp<br>
- MgSessionCache.GetSessionInfo line 157 file<br>
c:\build_tux_area\mgdev\server\src\common\manager\SessionCache.cppSession<br>
has expired or is invalid. Please log in again.<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: Brian Flood <br>
Sent: Tuesday, March 28, 2006 1:42 PM<br>
To: 'users@mapguide.osgeo.org'<br>
Subject: Newbie Questions<br>
<br>
greetings<br>
<br>
<br>
<br>
just digging into mgos so please forgive the simple questions...<br>
<br>
<br>
<br>
got everything working on a Windows 2003 server. Imported data using the<br>
Autodesk Preview program (quite nice). Figured out how to enable WMS<br>
services and I can query the GetCapabilities file successfully.<br>
<br>
<br>
<br>
1) Whenever I try use the mapagent to make a WMS request (other then<br>
GetCapabilities) it requires a logon. I must be missing the simple setting<br>
to allow anonymous users access to WMS mapping...<br>
<br>
<br>
<br>
2) in the designer, is there an easy way to set the initial extent of a map<br>
to the full extent of any layer/feature class? There is handy link to make<br>
the initial extent the current exent of the preview map but nothing that<br>
would set it to the extent of any one layer inside the map. Also, I know my<br>
data is NAD83 SPC in NJ but it looks like the coords in the extent bounds<br>
for the data are wrong? any thoughts?<br>
<br>
<br>
<br>
cheers<br>
<br>
brian<br>
<br>
<br>
<br>
<br>
<br>
<br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: users-unsubscribe@mapguide.osgeo.org<br>
For additional commands, e-mail: users-help@mapguide.osgeo.org<o:p></o:p></span></font></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>