[mapguide-users] WMS Error
Sacha Genoud
s.genoud at mkreis.ch
Fri Jun 9 03:20:29 EDT 2006
Hello Thomas
- I trid putting some dubbing code in the template an it works well. -
I think this is not the source of the problem.
I have analyzed the networktraffic between Mapguide OS and Gaia. In Gaia
you can set what kind of
the available coordinatesystem you would reguest to the MapGuide WMS
interface. Every request ends like this:
MgInvalidCoordinateSystemException
The coordinate system is invalid. EPSG:21781
Could not parse the OGC WKT.
Exception occurred in method MgCoordinateSystem.MgCoordinateSystem at
line 76 in file
c:\build_tux_area\mgdev\common\service\coordinatesystem\CoordinateSystem.cpp
Now i have set up a fedore core 5 box and i try to build Mapguide from
the source.
Sacha
Thomas M. Tuerke schrieb:
>Hello Sacha,
>
>Other than modifying the repository directly, I'm not aware of any available tools, aside from Studio. There may be some emerging ways out there in the community, though.
>
>That said, it might be useful to put some diagnostics into the template to see what is produced. In general, you can mension any expansion entity (anything that starts with an ampersand '&' and ends with a semicolon ';') into an XML comment like this:
>
><!-- Layer.Bounds = &Layer.Bounds; -->
>
>in your template, and you'll be able to see (in a web browser) what the OGC template sees. If the values look Okay there, then there's a problem with the templates. If the values look incorrect (something other than what you put into Studio) then there's a problem with the way the metadata is being handled by Studio and the server.
>
>I should say that there was some additional support for reference systems added since the OS builds were posted, so if you have the ability to download and build the source, that would be ideal. Unfortunately, just downloading the templates may not be enough, since they rely on fixes in the MapAgent code as well... hence the need to rebuild.
>
>Try putting some debugging comments in the template (in the Layer.xml definition) and let's see what we learn from that.
>
>- Thomas
>
>-----Original Message-----
>From: Sacha Genoud [mailto:s.genoud at mkreis.ch]
>Sent: Thursday, June 01, 2006 11:06 PM
>To: users at mapguide.osgeo.org
>Subject: Re: [mapguide-users] WMS Error
>
>
>Hello Thomas,
>
>i can set the bounds in Studio in the Layer Porperties:Service
>Properties:Bounds but it has no effect
>for the capabilities doc. I get allways the default capabilties
>(-180,-90;180,90) back.
>
>The EPSG-Code 217810 is defined under ....\Server\nad\epsg or
>....\WebServerExtension\www\nad\epsg Line 3113
>
>I can also set any EPSG:4326 entries: There is also no effect in the
>capabilities doc.....
>
>The Error 599 cames only if try to change these files to my needs:
>
>.../Server/Wms/1.1.1.xml.awd and OgcWmsService.config.awd
>
>I tried this also with the Demodata from Sheboygan, you can also
>delete the values for the Bounds in Studio, it has also no effect
>for the capabilities doc.
>
>Is there any place where i can set these values instead of studio?
>
>Do i have to set anything in these two files in the wms directory?
>
>Thank you!
>
>Sacha
>
>
>
>
>Thomas M. Tuerke schrieb:
>
>
>
>>Hello Sacha,
>>
>>Thank you for this information.
>>
>>One thing I can recommend to help you render in EPSG:21781 is to use the MapGuide Studio to provide the bounding information for that reference system. Since the layer seems to be "published" (shows up in the Capy Doc) I'm assuming that you're already familiar with the properties dialog in MapGuide Studio. On that dialog, there is an edit control where you specify the bounds for the layer in question. The syntax is a bit arcane (that's scheduled to change, though... ;-) and for now, you have to be very careful about typing things exactly correct (case matters, and don't forget the ending slash before the close bracket,) but it goes like this:
>>
>> <Bounds SRS="EPSG:21781" north="..." east="..." south="..." west="..." />
>>
>>where each ... must be substituted with the corresponding extent value expressed in 21781 units. When you omit bounds information, WMS falls back to some defaults in EPSG:4326, and that's probably what you're experiencing as far as distortion goes. The fact that 21781 isn't listed in the bounds explains the 559; I'm assuming that the GetMap request is asking for SRS=EPSG:21781.
>>
>>(I'll also have to verify that 21781 is supported in the projections library.)
>>
>>Try that, and see if that 559 error goes away.
>>
>>-----Original Message-----
>>From: Sacha Genoud [mailto:s.genoud at mkreis.ch]
>>Sent: Wednesday, May 31, 2006 11:15 PM
>>To: users at mapguide.osgeo.org
>>Subject: Re: [mapguide-users] WMS Error
>>
>>
>>Hallo Thomas
>>
>>- MG Server Version: 1.0.0.16407
>>- Capabilitiy document attached
>>- GAIA Version: 2.0.5
>>- i found no MG-log with the actual GetMap request
>>
>>Thank you for your answer. Now, i know a little bit more about this problem:
>>
>>I want to make WMS-server that works with data in the the swiss
>>projection (EPSG:21781).
>>I tried several configurations in Layers:Service Properties and in these
>>files:
>>.../Server/Wms/1.1.1.xml.awd and OgcWmsService.config.awd
>>
>>The client (eg. GAIA) should present the data in EPSG:21781. We tried
>>this with UMM Mapserver and Intergraph and it works. But with Mapguide OS
>>we became only a distordet imgage in EPSG:4326 (WGS84) or the error message
>>
>>(559) MgInvalidCoordinateSystemException
>>
>>Now i am very interessted at the proper configuration for my needs.
>>
>>Sacha
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>Thomas M. Tuerke schrieb:
>>
>>
>>
>>
>>
>>>Hello Sacha,
>>>
>>>That looks like it should now be handled; WMS was an ongoing effort, even through the beta and RC phases of MGOS. That message looks like one that's been fixed for a while now. Still, you can help us to ensure that is the case by providing us with:
>>>
>>>* The version of your MG installation.
>>>* A sample of the capability document your install provides.
>>>* The version of GAIA, and if possible the actual GetMap request sent
>>> from it. (That should appear in the MG logs.)
>>>
>>>Having worked on WMS client and server applications for a few years now, I've found one thing that's become painfully evident: OGC certification only applies to servers, and anybody can write a client and claim it to be WMS compatible. Because of this, you'll find a numerous instances of "Tolerance and Forgiveness" in our server code, to account for sloppiness in client implementations... in short, not all clients are created equal.
>>>
>>>Since you're using GAIA, I should point out that a considerable amount of our testing was carried out using CarbonTools' toolkit as a client, so we know MG plays well with their technology. We also played with a version of GAIA a while back, which seemed to be not as reliable as one sample app in their toolkit download, though that may not be the case anymore (I notice there's a GAIA 2 posted on their site.)
>>>
>>>- Thomas
>>>
>>>-----Original Message-----
>>>From: Sacha Genoud [mailto:s.genoud at mkreis.ch]
>>>Sent: Monday, May 29, 2006 1:49 AM
>>>To: users at mapguide.osgeo.org
>>>Subject: [mapguide-users] WMS Error
>>>
>>>
>>>Hello
>>>
>>>i tried a WMS connection to MapGuide with GAIA and i get back this error
>>>
>>>
>>>
>>>
>>>from Mapguide:
>>
>>
>>
>>
>>>(559) MgInvalidCoordinateSystemException
>>>
>>>Is there any documentation about WMS with Mapguide?
>>>
>>>Sacha
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
>>>For additional commands, e-mail: users-help at mapguide.osgeo.org
>>>
>>>
>>>.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>
>
>
>
--
Gruss
Sacha
-------------------------------------
Kreis AG Sargans
Ingenieur- und Vermessungsbüro
Kantonsschulweg 12
CH-7320 Sargans(Hauptbetrieb)
Tel. +41 (0)81 720 05 00
Fax +41 (0)81 720 05 05
Homepage : http://www.mkreis.ch
E-Mail : mailto:s.genoud at mkreis.ch
-------------------------------------
More information about the Mapguide-users
mailing list