[mapguide-users] MGE/MGOS Differences - WMS
Chris Claydon
chris.claydon at autodesk.com
Wed Nov 8 15:00:29 EST 2006
Hi James,
The difference between MGE and MGOS is that MGE uses Mentor coordinate
system dictionaries and MGOS uses PROJ4. PROJ4 needs to be able to
locate its data files using an environment variable, PROJ_LIB, but the
FastCGI map agent does not have access to the system environment
variables.
A couple of modifications were made in 1.0.2 to try to address this
issue. For Apache web servers, the PROJ_LIB variable was set using a
SetEnv statement in the configuration file (httpd.conf). For IIS, a
registry entry was added to store this information. These should be
enough to get the WMS services working, though a more solid long-term
solution is in the works.
I installed the MGOS 1.0.2 Server and Web Tier (IIS/PHP) on a clean
Windows XP VM. I don't have a Windows 2000 VM handy, but I can create
one if the OS seems to be a factor.
I was able to execute both GetMap and GetFeatureInfo requests against
both the Sheboygan sample data, and the packaged data that you sent me.
However, it appears that in your installation we still fail to obtain
the necessary information to initialize PROJ4 correctly.
As a first step, can you check that the following registry key exists on
your machine:
HKEY_LOCAL_MACHINE\SOFTWARE\MapGuideOpenSource\Coordsys
And that it contains a string value called "PROJ_LIB" that points to a
valid folder containing the PROJ4 data files.
Mine is set to:
C:\Program Files\MapGuideOpenSource\WebServerExtensions\www\nad
If these entries are correct, it could be that your map agent is unable
to read them. That could be an issue with IIS or Windows 2000.
Let me know if these settings are present on your server, and if they
are I'll dig a little deeper.
Chris Claydon.
-----Original Message-----
From: James Card [mailto:James.Card at calcad.com]
Sent: November 7, 2006 5:06 PM
To: users at mapguide.osgeo.org
Subject: Re: [mapguide-users] MGE/MGOS Differences - WMS
On Tue, 07 Nov 2006 15:53:48 -0800, Chris Claydon
<chris.claydon at autodesk.com> wrote:
> I'd like to try to reproduce your problem. I have a few questions:
>
> Are you running Apache or IIS?
Boths servers are running IIS; development environment is PHP.
> Can you send me sample requests that are failing for GetMap and
> GetFeatureInfo?
<URL:
http://demos.calcad.com/mapguide/mapagent/mapagent.fcgi?request=GetMap&l
ayers=StanCoGIS/Layers/parcels,StanCoGIS/Layers/roads&srs=EPSG:4326&bbox
=-121.49,37.13,-120.37,38.08&width=500&height=500&format=image/png
>
<URL:
http://demos.calcad.com/mapguide/mapagent/mapagent.fcgi?service=WMS&requ
est=GetFeatureInfo&layers=StanCoGIS/Layers/parcels&query_layers=StanCoGI
S/Layers/parcels&srs=EPSG:4326&bbox=-121.49,37.13,-120.37,38.08&width=50
0&height=538&format=image/png&x=150&y=269
>
Changing only the server component of those URLs returns a map and
feature
info when run against our MGE server (inside the firewall).
> Are you able to package up your data and send it to me?
The package is 58.6 MB (61,523,312 bytes), I'll forward download
instructions offlist.
--
James Card
California CAD Solutions, Inc.
209 578-5580
---------------------------------------------------------------------
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