[mapguide-users] Connecting to WMS
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Thu Feb 5 05:51:01 EST 2009
I have no idea how you can fix that.
If I had the problem, I would use EPSG:32633 on the map.
Regards, Kenneth Skovhede, GEOGRAF A/S
Stefan Dalakov skrev:
> Hi Kenneth,
> I explored the error log.
> The problem is that coordinate systems do not match BUT :
>
> 1. The error log says
> /The coordinate system (*EPSG:32633*) of layer RissaWMSLayer1 cannot
> be different than the coordinate system (*EPSG:32632*) of the map
> /2. The wms layer is configured to use /*EPSG:32632 */- in my
> config.xml it is written
> / <RasterDefinition name="Image">
> <Format>PNG</Format>
> <Transparent>true</Transparent>
> <BackgroundColor>0xFFFFFF</BackgroundColor>
> <Time>current</Time>
> <Elevation>0</Elevation>
> <SpatialContext>*EPSG:32632*</SpatialContext>
> <Layer name="VERANDA">
> .......
> /3. The service supports this coordinate system - in GetCapabilities
> document I have
>
> <SRS>EPSG:32633</SRS>
> <BoundingBox SRS="EPSG:32633" minx="218329.98786561"
> miny="7160648.90075887" maxx="305197.974972341" maxy="7041546.39019898"/>
> *<SRS>EPSG:32632</SRS>
> <BoundingBox SRS="**EPSG:32632" minx="506720" miny="7147644"
> maxx="604333" maxy="7037305"/>
> *<SRS>EPSG:32634</SRS>
> <BoundingBox SRS="EPSG:32634" minx="-68103.0343048812"
> miny="7200948.9760428" maxx="7352.92691530631" maxy="7073836.91252369"/>
> <SRS>EPSG:9804</SRS>
> <BoundingBox SRS="EPSG:9804" minx="1017422.41132931"
> miny="9427477.01214373" maxx="1234782.60719126" maxy="9172903.66920839"/>
> -
>
> So, I want the map and WMS layer to be in coordinate system *32632*,
> the Feature source is configured to use this coordinate system, the
> service supports it, but still the server sends the output in *32633.*
> Can you spot my mistake ?
>
> Best regards : Stefan Dalakov
> /
>
>
> /Kenneth Skovhede, GEOGRAF A/S wrote:
>> Since a WMS layer is a raster layer, MapGuide requires that the
>> Coordinate System of the layer is EXACTLY the same as for the map.
>>
>> This means that the Coordinate System Override on the layer must
>> match the map's Coordinate System exactly.
>>
>> To see if there are any errors reported, look in the error log:
>> C:\Program Files\MapGuideOpenSource2.0\Server\Logs\Error.log
>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>
>>
>>
>> Stefan Dalakov skrev:
>>> Hi all,
>>> I am trying to add a WMS layer to my map.
>>> I followed the procedure described here :
>>> https://trac.osgeo.org/fdo/wiki/FdoWmsNotes
>>> to create a feature source.
>>> When I open the feature source in Studio the connection tests OK.
>>> Clicking the *Refresh* button generates an error originating from
>>> displayschema.php at line :
>>> /document.getElementById("Geom_"+"RissaWMS").previousSibling.firstChild.src
>>> = "./images/collapse_pane.png";
>>> /for each layer in the WMS feature source which is not critical
>>> (critical for Studio)
>>> *View Data *link then reports BBOX parameter missing, which I assume
>>> is normal
>>>
>>> I create a Layer afterwards, based on this Feature Source. The layer
>>> seems ok - refreshes OK, nothing on screen . This I also assume
>>> normal as the layers (as described in the GetCapabilities
>>> document) are limited to scale ranges up to 1:5000.
>>>
>>> I add this layer to an existing map, with matching coordinate system
>>> (EPSG:32632 of the WMS Feature Source and UTM-WGS84 / Zone 32 North
>>> of the map).
>>> The WMS layer is not shown on the preview in Studio - perhaps this
>>> is also normal - my other raster layers are not previewed either.
>>>
>>> But when I don't see the layer data in browser I am really stressed.
>>>
>>> And my biggest stress is based on the fact that I do not know how to
>>> debug this situation
>>>
>>> Any help will be highly appreciated
>>>
>>>
>>> Thank you in advance : Stefan Dalakov
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090205/6f912bd7/attachment.html
More information about the mapguide-users
mailing list