[mapguide-users] MGOS 2.1 - ECW

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Thu Dec 10 02:46:42 EST 2009


The GDAL provider is a little special, in that it never reports errors.
Instead it returns the default extent, as you have in your xml below.

Sometimes (perhaps an MG bug or a specific format issue?), the default 
extents are also
returned for perfectly valid data, making it impossible to detect errors :(.

The only way to see the data, is to set up a map with the correct 
coordinate system and
extents. Then add the layer and preview the map.

The GDALOPEN message you get means that the file was read correctly.
I'm not sure what aux or HFA has to do with ECW though.
IIRC (90% certain :)), it reports "succeeds as ECW" in my setup.

The "Value cannot be null" could be the indicator, but since you can get
the schema, I suspect that it is working anyway.

In Maestro (the latest preview), there is a bug with the coordinate 
system override,
you need to use the "advanced" editor, or the coordsys override is not 
set (there is an issue registered).

Regards, Kenneth Skovhede, GEOGRAF A/S



Denis Lalonde skrev:
>
> I currently have several XP based laptops running MGOS 2.02 (IIS, PHP) 
> and one server (MGOS 1.2, IIS, PHP). All of the maps on each were 
> authored using Studio and each have a 1.05Gb ECW displaying correctly.
>
> However, I can not seem to get the same ECW to run correctly with MGOS 
> 2.1 on another new XP laptop (IIS, PHP).  I've tried using both Studio 
> 2009 as well as Maestro to no avail.
>
> With studio, I use the GDAL provider and connect to an external data 
> source via a pre-configured alias (C:\Data\ECW_2007). I then select 
> the ECW via the "data files" and then do a coordinate override. When I 
> add the layer using this data source and preview it, nothing appears.
> No errors show up in the log show up and running in debug mode shows 
> no errors. I only get messages of type: "GDAL: GDALOPEN 
> <C:\DATA\ECW_2007/Cornwall_10cm_20-1.aux, this=0146110> succeeds as 
> HFA" (I think that means no errors...correct?).
>
> I've never used Maestro before, but I think I do everything right 
> there too. I select the GDAL Provider, of "type Single file or 
> folder", point to my .ecw in the Aliased folder and override the 
> Coordinate System to UTM83-18.
>
> When I create a layer for this datasource however, I get this message:
>
> /"Failed to read schema from data source./
>
> /The operation gave the error message: Value cannot be null./
>
> /Parameter name:  input"/
>
> After that message shows up, I select "default: default" in the Schema 
> drop down and "Image" automatically appears in the Raster drop down.
> If I check the XML of the datasource, the extents shown don't make any 
> sense.  This is apparent when I preview a map with the ECW because the 
> map is centered at 0X, 0Y. Why is that? (See XML below)
> I've tried repeating everything several times, without success. I 
> really need this to work. What has changed that this doesn't work anymore?
> If anyone wants to test drive the ECW, I can make it available for 
> download. Let me know.
> /<?xml version="1.0"?>/
>
> /<FdoSpatialContextList 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
> xsi:noNamespaceSchemaLocation="FdoSpatialContextList-1.0.0.xsd">/
>
> /  <ProviderName>OSGeo.Gdal.3.4</ProviderName>/
>
> /  <SpatialContext IsActive="true">/
>
> /    <Name>Default</Name>/
>
> /    <Description>System generated default FDO Spatial 
> Context</Description>/
>
> /    <CoordinateSystemName>Default</CoordinateSystemName>/
>
> /    
> <CoordinateSystemWkt>LOCAL_CS["*XY-MT*",LOCAL_DATUM["*X-Y*",10000],UNIT["Meter", 
> 1],AXIS["X",EAST],AXIS["Y",NORTH]]</CoordinateSystemWkt>/
>
> /    <ExtentType>Static</ExtentType>/
>
> /    <Extent>/
>
> /      <LowerLeftCoordinate>/
>
> /        <X>-10000000</X>/
>
> /        <Y>-10000000</Y>/
>
> /      </LowerLeftCoordinate>/
>
> /      <UpperRightCoordinate>/
>
> /        //<X>10000000</X>/
>
> /        <Y>10000000</Y>/
>
> /      </UpperRightCoordinate>/
>
> /    </Extent>/
>
> /    <XYTolerance>0.001</XYTolerance>/
>
> /    <ZTolerance>0.001</ZTolerance>/
>
> /  </SpatialContext>/
>
> /</FdoSpatialContextList>/
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20091210/17afabef/attachment.html


More information about the mapguide-users mailing list