I think your problem is slightly different to mine cause WMS reprojection is done by the external WMS server and not done by MapGuide. So with coordinate system overriding I would get the correct map from the server. My problem is that MapGuide takes the first entry in coordinates system list from GetCapabilities-Requst (and not my overriding from config.xml) and compare it with the coordinate system defined in MapDefinition. So I have to add some more detail to my first posting in this thread: There is no GetMapRequest send from MapGuide Server to the WMS server. I wonder if there is another place to define this overriding (LayerDefiniton?, FeatureSource?).
By the way, I’ve also seen the same problem like you when using the FDO GDAL Provider. I have several Tiff-Files with their associated tfw files. I’ve created a tile index file (see http://trac.osgeo.org/fdo/wiki/FdoGdalNotes) and this worked fine since updating to 2.0.1. Since then I’ve got the same message as yours (different coordinatesystems). In my tile index file I searched the coordinate system entry and realized that it was : <fdo:WKT>LOCAL_CS["*XY-MT*",LOCAL_DATUM["*X-Y*",10000],UNIT["Meter", 1],AXIS["X",EAST],AXIS["Y",NORTH]]</fdo:WKT> I changed it to the WKT string for my projection and got it working. But this is not a real reprojection since a tfw-file has no CS definition. I don’t know if it will help to solve your problem since you need reprojection from EPSG:4326 to EPSG:4019. I’ve ever thought that MapGuide (or FDO GDAL Provider) would not do reprojection on the fly. So does this really worked with 1.2? Maybe it is possible to have tile index file for your ecw-files to override CS settings!! Gunter max_samart wrote: > > Hi > I am using SQL Server 2005 and used the bulk copy tool to load theLL84 > *.sdf and *.shp files into the database and depending on those layers the > automatic projection of the map is EPSG:4019 while my raster files are in > EPSG:4326 . > Anyway this works inMGE2008 due to coordinate transformation and can view > raster layers with overlaid vector layers but once i tried this on the > MGOS 2.0.1 ,it use to give the error about different coordinate system > hence i changed the coordinate system of the map into EPSG:4326 by using > the setting Resource from Map Agent. > Now the question is what about MgCoordinateSystem.dll file and does > MGOS2.1.0 not support on the fly Coordinate Transformation. > Thks > Max > > > ----- Original Message ---- > From: Zac Spitzer <[EMAIL PROTECTED]> > To: MapGuide Users Mail List <[email protected]> > Sent: Thursday, June 5, 2008 5:23:25 PM > Subject: Re: [mapguide-users] WMS - coordinate system overriding in MGOS > 2.0.1 fails > > EPSG:4019 is like a catch all default EPSG code, > > http://spatialreference.org/ref/epsg/4019/ > > what is your data base in, i have seen this from oracle before when i > was using a > projection which didn't translate directly to an epsg code > > On Thu, Jun 5, 2008 at 7:56 PM, Rahul <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I saw that there is no MgCoordinateSystem.dll file in the MGOS2.0.1 >> as compared to the previous version of MGOS1.2. in the following folder >> \www\mapagent\ . >> >> >> >> Yeterday i was also getting the same error while i was trying to use the >> FDO >> GDAL provider for ecw files as my raster files are in EPSG:4326 (LL84) >> while >> my Map is in another (LL84 using MapGuide Studio but that shows the Map >> Coordinate system as EPSG:4019),I don't know why ? Anyway for my ecw >> raster >> files testing i converted the Map Coordinate system same as the Raster >> files >> and able to see the ratser layer in the map. >> >> >> >> ERROR >> >> ------------------------------------------------------------------------------------------------------- >> >> <2008-06-04T14:35:16> Administrator >> Error: Failed to stylize layer: Image >> Raster transformation is not supported. >> The coordinate system (EPSG:4326) of layer Image cannot be different >> than the coordinate system (EPSG:4019) of the map. >> StackTrace: >> - MgMappingUtil.StylizeLayers line 775 file >> d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\mapping\MappingUtil.cpp >> Failed >> to stylize layer: Image >> Raster transformation is not supported. >> The coordinate system (EPSG:4326) of layer Image cannot be different than >> the coordinate system (EPSG:4019) of the map. >> >> -------------------------------------------------------------------------------------------------------- >> >> Max !! >> >> ----- Original Message ---- >> From: Gunter Becker <[EMAIL PROTECTED]> >> To: [email protected] >> Sent: Thursday, June 5, 2008 4:05:05 PM >> Subject: [mapguide-users] WMS - coordinate system overriding in MGOS >> 2.0.1 >> fails >> >> >> Hi, >> >> in MGOS 1.2 I used coordinate system overriding for WMS layers as >> described >> in >> >> http://trac.osgeo.org/fdo/wiki/FdoWmsNotes >> http://trac.osgeo.org/fdo/wiki/FdoWmsNotes >> >> This works fine for me since I've updated MGOS to version 2.0.1. No WMS >> layers showing up anymore! >> I recognized some logging entries in Error.log. The message is: >> >> Raster transformation is not supported. >> The coordinate system (EPSG:4326) of layer Naturschutzgebiet cannot be >> different than the coordinate system () of the map. >> >> In my Config.xml-file I've overridden the coordinate system with >> EPSG:31467 >> (it's definitely supported by the WMS-server). My map is also in >> EPSG:31467. >> It seems to me that MGSO takes the first coordinate system entry (in my >> case >> EPSG:4326) from the WMS source whether there is an cs-overriding defined >> in >> the SpatialContext-Node of the config.xml. >> >> So my question is if someone has realised the same problem and has a >> solution. Maybe it is a bug with handling coordinate system overriding >> in >> MGOS 1.0.2 or FDO 3.3? >> >> Gunter >> -- >> View this message in context: >> http://www.nabble.com/WMS---coordinate-system-overriding-in-MGOS-2.0.1-fails-tp17665380p17665380.html >> Sent from the MapGuide Users mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapguide-users mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/mapguide-users >> >> >> _______________________________________________ >> mapguide-users mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/mapguide-users >> >> > > > > -- > Zac Spitzer - > http://zacster.blogspot.com (My Blog) > +61 405 847 168 > _______________________________________________ > mapguide-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > > > > _______________________________________________ > mapguide-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > -- View this message in context: http://www.nabble.com/WMS---coordinate-system-overriding-in-MGOS-2.0.1-fails-tp17665380p17668288.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
