[mapguide-users] MapGuide Open 1.0.1 and WMS problems
Andy Morsell
amorsell at spatialgis.com
Mon Jul 31 19:33:13 EDT 2006
Thomas,
I tried that and still had no luck. Can anybody confirm that WMS reading of
layers is working on MapGuide Open 1.0.1?? If you have the latest Sheboygan
sample dataset installed, try using the following URL replacing the server
name with yours:
http://mapguide.spatialgis.com/mapguide/mapagent/mapagent.fcgi?request=GetMa
p
<http://mapguide.spatialgis.com/mapguide/mapagent/mapagent.fcgi?request=GetM
ap&service=WMS&layers=Samples/Sheboygan/Layers/Hydrography&srs=EPSG:4326&bbo
x=-87.74,43.68,-87.69,43.815&width=500&height=500&format=image/png>
&service=WMS&layers=Samples/Sheboygan/Layers/Hydrography&srs=EPSG:4326&bbox=
-87.74,43.68,-87.69,43.815&width=500&height=500&format=image/png
Thanks.
Andy
_____
From: Thomas M. Tuerke [mailto:thomas.m.tuerke at autodesk.com]
Sent: Monday, July 31, 2006 1:50 PM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] MapGuide Open 1.0.1 and WMS problems
Hmmm. it looks like something in the underlying CS tools is failing to do
the transformation from the EPSG to WKT.
In the meantime, you might try to put an explicit override into the
SRS.WKT.Map definition, found in the OgcWmsService.config.awd file. This
trumps anything the libraries may try to do. Add a <translate> element
mapping EPSG 4326 to the correct WKT, a la:
<Define item="SRS.WKT.map">
<translate from="EPSG:4326">wkt-string-here</translate>
:
:
</Define>
where "wkt-string-here" is the WKT associated with EPSG:4326. (There
should already be an example mapping in there for reference.) Not having
the tables in front of me at the moment, I did a quick search on the web to
pull up these candidates (pick one,) but please verify that the numbers are
in order. A cursory glance suggests that they are, but caveat user.
- Thomas
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9108"]],
AXIS["Lat",NORTH],
AXIS["Long",EAST],
AUTHORITY["EPSG","4326"]]
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.01745329251994328,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4326"]]
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG",7030]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG",6326]],
PRIMEM["Greenwich",0,AUTHORITY["EPSG",8901]],
UNIT["DMSH",0.0174532925199433,AUTHORITY["EPSG",9108]],
AXIS["Lat",NORTH],
AXIS["Long",EAST],
AUTHORITY["EPSG",4326]]
_____
From: Andy Morsell [mailto:amorsell at spatialgis.com]
Sent: Monday, July 31, 2006 11:11 AM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] MapGuide Open 1.0.1 and WMS problems
Thomas,
I did have it that way for one layer and with proper case on another. After
making sure they are all consistent, I still get the same error message.
Here is the result of WMS GetCapabillities for one of the layers in
question:
<!-- Published Layer #2 -->
<http://mapguide.spatialgis.com/mapguide/mapagent/mapagent.fcgi?REQUEST=GetC
apabilities&SERVICE=WMS&FORMAT=text/xml> - <Layer queryable="0" cascaded="0"
noSubsets="0" opaque="0">
<Name>Samples/Sheboygan/Layers/Hydrography</Name>
<Title>Hydrography</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-180" miny="-90" maxx="180" maxy="90" />
<BoundingBox SRS="EPSG:4326" minx="-180" miny="-90" maxx="180" maxy="90"
/>
</Layer>
And I am trying to test it via:
http://mapguide.spatialgis.com/mapguide/mapagent/mapagent.fcgi?request=GetMa
p
<http://mapguide.spatialgis.com/mapguide/mapagent/mapagent.fcgi?request=GetM
ap&service=WMS&layers=Samples/Sheboygan/Layers/Hydrography&srs=EPSG:4326&bbo
x=-87.74,43.68,-87.69,43.815&width=500&height=500&format=image/png>
&service=WMS&layers=Samples/Sheboygan/Layers/Hydrography&srs=EPSG:4326&bbox=
-87.74,43.68,-87.69,43.815&width=500&height=500&format=image/png
Andy
_____
From: Thomas M. Tuerke [mailto:thomas.m.tuerke at autodesk.com]
Sent: Monday, July 31, 2006 10:53 AM
To: users at mapguide.osgeo.org
Subject: RE: [mapguide-users] MapGuide Open 1.0.1 and WMS problems
Just an FYI: XML is case sensitive, so unless your example is capitalized
for emphasis, I'd recommend trying <Bounds . /> instead.
- Thomas
_____
From: Andy Morsell [mailto:amorsell at spatialgis.com]
Sent: Sunday, July 30, 2006 4:54 PM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] MapGuide Open 1.0.1 and WMS problems
Hi,
I am having some problems publishing layers via WMS after upgrading to
MapGuide Open 1.0.1. This problem is similar to those I had recently when I
installed MapGuide Enterprise. When I issue a WMS request to a given layer,
I get the following error returned:
<ServiceExceptionReport version="1.1.1">
<ServiceException code="InternalError">
The coordinate system conversion failed.
Unsupported coordinate system code.<details>The coordinate system conversion
failed.
Unsupported coordinate system code.
Exception occurred in method
MgCoordinateSystem.ConvertCoordinateSystemCodeToWkt at line 950 in file
c:\build_tux_area\mgdev_opensource\common\service\coordinatesystem\Coordinat
eSystem.cpp
</details>
</ServiceException>
</ServiceExceptionReport>
As I had to do with MapGuide Enterprise, I added <BOUNDS SRS="EPSG:4326"
west="-180" south="-90" east="180" north="90" /> to the WMS Bounds parameter
for the layer, but I still continue to get this error.
Any help is appreciated.
Andy Morsell, P.E.
Spatial Integrators, Inc.
<http://www.SpatialGIS.com> http://www.SpatialGIS.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20060731/7e388384/attachment.html
More information about the Mapguide-users
mailing list