Opened 16 years ago
Closed 15 years ago
#600 closed defect (fixed)
WMS - coordinate system overriding fails
Reported by: | gBecker | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 2.2 |
Component: | WMS Interface | Version: | 2.0.1 |
Severity: | critical | Keywords: | |
Cc: | External ID: |
Description
In MGOS 2.0.1 coordinate system overriding for WMS fails. No WMS layers showing up anymore. With version 1.2 there was no problem. I've tested it with Windows Vista and Windows Server 2003.
I recognized some logging entries in Error.log. It says the coordinate system of the layer is not the same as the one for the map. It seems that MapGuide doesn't look up the SpatialContext-Node of my Config.xml. Maybe doesn't look up the configuration file at all.
By the way, the same configuration in MapGuide Enterprise 2009 works fine.
Gunter
Attachments (4)
Change History (9)
by , 16 years ago
Attachment: | Config.xml added |
---|
by , 16 years ago
Attachment: | Error_log.txt added |
---|
comment:1 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
The map and the feature source/layer are in different coordinate systems. The problem is exactly what the server is saying. There is a web page on the wiki that describes how to configure a WMS feature source so that it uses the correct coordinate system (for your case DHDN.Gauss3d-3 (DHDN.Gauss3d-3)). When you find that link, please add it to this ticket so that others can find it. Closing this ticket.
comment:2 by , 16 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
Sorry for reopening this ticket but I think it is really a bug. As I mentioned i've got it working with MGOS 1.2 and MGE 2009.
I know the document you pointed me to. The configuration described there is exactly what I've done before I opened this ticket. You can see it in the attached package and the Config.xml file. The coordinate system I use in my MapDefinition is DHDN.Gauss3d-3 and its pendant in Config.xml is EPSG:31467.
Some more information:
When preview the LayerDefinition in MapGuide Studio 2009 our server logs requests with the correct CS (EPSG:31467) but with BoundingBox in lat/lon-coordinates:
wrong: ... &SRS=EPSG:31467&BBOX=8.050927,48.543305,8.309285,48.673315 ... (correct: ... &SRS=EPSG:31467&BBOX=3498000,5283000,3510000,5300000 ...)
When preview the map I got the message I've described in my first post. The log says that the layer CS is EPSG:4326. I've never used this CS. But it is the first CS in the GetCapabilites document from the WMS server (which I thought I have overridden in the configuration document). MapGuide seems to ignore my CS settings and always passes the coordinates in the format of the first CS from WMS server.
Another point is that when I'm dragging the LayerDefinition from Site-Explorer in MG Studio to the MapDefinition the coordinate system that shows up in the CS textbox is LL84 (WGS 84). I tried this also with WMS servers that have other CS at the first position and it always takes the first one in the list (EPSG:31467 results in DHDN.Gauss3d-3). At this point I've also tried to override the coordinate system setting of my FeatureSource (<SupplementalSpatialContextInfo>) with no success.
I hope this will clarify my situation!
comment:3 by , 16 years ago
Oh, sorry, I missed the config.xml file last time, I use lower case config.xml instead of Config.xml and that is why I couldn't find it. I can reproduce that this works in AMGE 2009 but does not work with MGOS 2.0.1. I would think that this is a problem with Proj.4, but I'm just guessing.
by , 15 years ago
Attachment: | wmsconfigfix.patch added |
---|
Patch that addresses the missing spatial context association for wms layers
comment:5 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Some of the changes required for this fix were addressed with the fix for ticket 1091.
Fixed in trunk r4404
Coordinate System Overriding