[mapguide-users] Trouble with WMS and/or the database (mapguide 2.2.0)

Daum, M. m.daum at sst-consult.de
Wed Aug 31 09:52:44 EDT 2011


Hi!

I'm using the following components:

- CentOS 5.6 (x86_64)
- mapguideopensource-2.2.0.5703-centos5.tar.gz
- fdosdk-centos5-3.5.0.tar.gz
- Maestro-3.5.0 (on Windows XP)
- Redding.mgp (example project)
- gaia 3.4.2 (on Windows XP)
- Quantum GIS 1.7 (on Windows XP)


After loading the Redding.mgp package into the server, I can connect
to the WMS using gaia. There are two published layers:

Redding/Basemap/Layers/floodzone
Redding/Basemap/Layers/Parcels


The relevant abstract of the getCapabilites.xml returned by the
mapguide server reads like this (some information replaced with dots):

<!-- Published Layer #1 -->
<Layer queryable="1" cascaded="0" noSubsets="0" opaque="0">
	<Name>Redding/Basemap/Layers/floodzone</Name>
	<Title>Redding Flood Zone</Title>
	<SRS>EPSG:4326</SRS>
	<LatLonBoundingBox minx=..... />
	<BoundingBox SRS="EPSG:43..... />
</Layer>
<!-- Published Layer #2 -->
<Layer queryable="1" cascaded="0" noSubsets="0" opaque="1">
	<Name>Redding/Basemap/Layers/Parcels</Name>
	<Title>Redding Parcels</Title>
	<SRS>EPSG:4326</SRS>
	<LatLonBoundingBox minx="..... />
	<BoundingBox SRS="EPSG:43..... />
</Layer>



When I go into Maestro and change some settings in the Redding project
the trouble begins:


1) Changing some WMS properties of Redding/Basemap/Layers/floodzone:

The field 'Title' shows "Redding Flood Zone" while the fields for
'Keywords', 'Abstract' and 'Metadata' are empty. I copy and paste
"Redding Flood Zone" into 'Keywords', 'Abstract' and 'Metadata' and
press the OK button. Everything looks good, no error messages.


Reloading the WMS service in gaia shows only one published layer
(Parcels) while the other layer (floodzone) has disappeared.


getCapabilities.xml now reads like this:

<!-- Published Layer #1 -->
<Layer queryable="1" cascaded="0" noSubsets="0" opaque="1">
	<Name>Redding/Basemap/Layers/floodzone</Name>
	<Title>Redding Parcels</Title>
	<Abstract>Redding Flood Zone</Abstract>
	<KeywordList>
		<Keyword>Redding Flood Zone</Keyword>
	</KeywordList>
	<SRS>EPSG:4326</SRS>
	<LatLonBoundingBox minx=..... />
	<BoundingBox SRS="EPSG:43..... />
</Layer>

The layer floodzone! is published with a wrong title.



2) Changing WMS properties of a third layer Redding/Basemap/Layers/Roads:

Enable the Checkboxes "Available" and "Queryable" and copy and paste
"Redding Roads" into 'Title', 'Keywords', 'Abstract' and 'Metadata'.

Reloading the WMS service in gaia still shows only one published layer
while there should be three now. getCapabilities.xml has changed to this:

<!-- Published Layer #1 -->
<Layer queryable="1" cascaded="0" noSubsets="0" opaque="0">
	<Name>Redding/Basemap/Layers/floodzone</Name>
	<Title>Redding Parcels</Title>
	<Abstract>Redding Roads</Abstract>
	<KeywordList>
		<Keyword>Redding Roads</Keyword>
	</KeywordList>
	<SRS>EPSG:4326</SRS>
	<LatLonBoundingBox minx=..... />
	<BoundingBox SRS="EPSG:43..... />
</Layer>

The layer floodzone is published with a wrong title, abstract and keyword
are wrong as well. Data of three different layers have been mixed.


I revert all my changes to the Redding layers end reload the WMS service
in gaia. Everything is back to normal, I can see floodzone and Parcels.

Now I enable the layers 'Parks', 'Roads' and 'Railroad' in WMS and only
set their 'Title' while I leave the fields for 'Keywords', 'Abstract' and
'Metadata' empty.


Reloading in gaia only shows three published layers (floodzone, Parcels,
Parks), the layers Roads and Railroad are missing. In fact I am unable
to see more than three published layers, no matter how much layers of the
Redding project I enable within Maestro.



What am I doing wrong here or what is going on at the mapguide/wms server?



A friend has made some tests with MGOS 2.2.0 on Windows Server 2003 (32bit)
with a 'Sheboygan' Package. He has similar problems.

Regards,
Michael


More information about the mapguide-users mailing list