<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I don't have a solution, but here is what I do know:<br>
<br>
MapGuide does not support raster reprojection yet, but its in the
making.<br>
If you create a new map and insert your raster, you will get the
message below.<br>
The error message explains that the map does not have a coordinate
system, so you can't<br>
convert the raster to the other projection (which is empty).<br>
<br>
You could send in a enhancement request and ask that an empty
coordinate system<br>
should skip the re-projection (an obvious default IMO).<br>
<br>
Apparently MapGuide makes a map on-the-fly for the WMS request, and<br>
for some reason, it will not set the projection for the map.<br>
<br>
Have you tried to set the projection override on the raster to<br>
something like "XY-M" and see if you get another error message?<br>
<br>
Beware that currently MapGuide Studio uses the Mentor projection
library,<br>
where as MGOS uses the PROJ.4 library, so if you pick a coordinate
system<br>
in Studio, it might not work in MGOS.<br>
<br>
This will change as Autodesk has purchased the Mentor library, and
released it <br>
as open source, and it will be included in the next version of MapGuide.<br>
<br>
For now you can try to set the coordinate system override using Maestro,<br>
as it uses the actual server coordinate systems:<br>
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapguide/wiki/maestro">http://trac.osgeo.org/mapguide/wiki/maestro</a><br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
web skrev:
<blockquote
cite="mid:1227091029-cd09692e3d2c06eb28b932875383d96b@infogeo.ch"
type="cite">
<p>Hi all,<br>
I have a wms feature source which natively outputs datas whith the
fellowing projection:<br>
EPSG:21781 (swiss grid)<br>
<br>
My Map projection is also set as CH1903.LV03/01 (CH1903.LV03/01) (swiss
grid)<br>
so the feature source should be compatible. By accessing this layer I
got the fellowing error:</p>
<p><br>
- MgMappingUtil.StylizeLayers line 786 file
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\mapping\MappingUtil.cpp
Failed to stylize layer: orthophoto<br>
Raster transformation is not supported.<br>
The coordinate system (EPSG:21781) of layer orthophoto cannot be
different than the coordinate system () of the map.<br>
<br>
It seems that mapguide did not recognize the projection used in the
map, if we look at the message: "cannot be different than the
coordinate system () of the map". The parenthese is empty...<br>
<br>
- Is raster reprojection really impossible, like the stack trace tells?<br>
- Do I have to set something for the proj4 library?<br>
<br>
any hint about adding a WMS feature source with another native
projection than WGS84 would be appreciated :-)<br>
<br>
Rémy<br>
</p>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
</body>
</html>