[mapguide-users] RE: Newbie Questions

Brian Flood BFLOOD at SPATIALDATALOGIC.COM
Tue Mar 28 15:19:28 EST 2006


that works, thanks. I knew it was something easy.

Kaarigar - thanks, I changed the admin password. It's a temp site anyway...

cheers all
brian

-----Original Message-----
From: Chris Claydon [mailto:chris.claydon at autodesk.com] 
Sent: Tuesday, March 28, 2006 3:18 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] RE: Newbie Questions

The sample request below contains an unwanted ampersand (&) directly after
the question mark (?). This probably interferes with the detection of the
"REQUEST" parameter.

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.

This is the request I made:

http://12.144.53.43/mapguide/mapagent/mapagent.fcgi?REQUEST=GetMap&SERVICE=W
MS&VERSION=1.1.1&LAYERS=Layers/Zoning_2005&STYLES=default&FORMAT=image/gif&B
GCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-74.77294921875,40.61395
2441166596,-74.761962890625,40.622291783092706&WIDTH=256&HEIGHT=256&reaspect
=false

Chris.

----- Original Message ----
From: Brian Flood <BFLOOD at SPATIALDATALOGIC.COM>
To: "users at mapguide.osgeo.org" <users at mapguide.osgeo.org>
Sent: Tuesday, March 28, 2006 11:22:03 AM
Subject: [mapguide-users] RE: Newbie Questions

thanks

yea, it does contain both a REQUEST and SERVICE parameter...

I am just typing the request into the browser directly, I should get back
the image like any other WMS service.
http://12.144.53.43/mapguide/mapagent/mapagent.fcgi?&REQUEST=GetMap&SERVICE=
WMS&VERSION=1.1.1&LAYERS=Zoning_2005&STYLES=default&FORMAT=image/gif&BGCOLOR
=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-74.77294921875,40.61395244116
6596,-74.761962890625,40.622291783092706&WIDTH=256&HEIGHT=256&reaspect=false

I've tried it without the "reaspect" parameter as well...

this is from the Error log:
<2006-03-28T14:10:04>     Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2;
SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
12.144.53.43

Error: Session has expired or is invalid. Please log in again.
StackTrace:
  - MgOpAuthenticate.Execute line 111 file
c:\build_tux_area\mgdev\server\src\services\site\OpAuthenticate.cpp
  - MgSecurityManager.Authenticate line 227 file
c:\build_tux_area\mgdev\server\src\common\manager\SecurityManager.cpp
  - MgSessionCache.GetSessionInfo line 157 file
c:\build_tux_area\mgdev\server\src\common\manager\SessionCache.cppSession
has expired or is invalid. Please log in again.



-----Original Message-----
From: Brian Flood 
Sent: Tuesday, March 28, 2006 1:42 PM
To: 'users at mapguide.osgeo.org'
Subject: Newbie Questions

greetings



just digging into mgos so please forgive the simple questions...



got everything working on a Windows 2003 server. Imported data using the
Autodesk Preview program (quite nice). Figured out how to enable WMS
services and I can query the GetCapabilities file successfully.



1) Whenever I try use the mapagent to make a WMS request (other then
GetCapabilities) it requires a logon. I must be missing the simple setting
to allow anonymous users access to WMS mapping...



2) in the designer, is there an easy way to set the initial extent of a map
to the full extent of any layer/feature class? There is handy link to make
the initial extent the current exent of the preview map but nothing that
would set it to the extent of any one layer inside the map. Also, I know my
data is NAD83 SPC in NJ but it looks like the coords in the extent bounds
for the data are wrong? any thoughts?



cheers

brian






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org





More information about the Mapguide-users mailing list