[mapguide-trac] #1679: Extent not changing in
RasterConfigurationDocument
MapGuide Open Source
trac_mapguide at osgeo.org
Mon May 23 03:41:41 EDT 2011
#1679: Extent not changing in RasterConfigurationDocument
-----------------------+----------------------------------------------------
Reporter: gBecker | Owner: jng
Type: defect | Status: new
Priority: medium | Milestone: Maestro-3.1
Component: Maestro | Version:
Severity: major | Keywords:
External_id: |
-----------------------+----------------------------------------------------
Comment(by gBecker):
Extent is created but not correct!
It's to late to do localization in GdalRasterItem.cs.
I debugged the code and found out that you have to replace lines 302-305
in CompositeFileCtrl.cs with the following lines:
{{{
raster.MinX =
Convert.ToDouble(scList.SpatialContext[0].Extent.LowerLeftCoordinate.X,
System.Globalization.CultureInfo.InvariantCulture);
raster.MinY =
Convert.ToDouble(scList.SpatialContext[0].Extent.LowerLeftCoordinate.Y,
System.Globalization.CultureInfo.InvariantCulture);
raster.MaxX =
Convert.ToDouble(scList.SpatialContext[0].Extent.UpperRightCoordinate.X,
System.Globalization.CultureInfo.InvariantCulture);
raster.MaxY =
Convert.ToDouble(scList.SpatialContext[0].Extent.UpperRightCoordinate.Y,
System.Globalization.CultureInfo.InvariantCulture);
}}}
This fixes the issue.
BTW the updated GDAL Provider dll doesn't work for me (MGOS 2.2
final/64Bit). When trying to create a Raster-FeatureSource I get the
message that the GdalProvider couldn't be loaded.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1679#comment:8>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list