[Gdal-dev] ECW registration information not recognised in ESRI

Tom Lynch tflynch at gmail.com
Sun Jun 12 20:49:19 EDT 2005


Jacob - sounds right.

With respect to affine and sheared registrations - the situation is that it 
isn't possible to store them in the header of an ECW file (the file header 
stores world origin and world cell size rather than affine values). There is 
nothing to stop an application such as ArcGIS from reading the raster data 
and applying an affine transformation to it based on some other content - 
such as a world file - or creating an auxiliary file when saving a working 
set out to ECW. But a problem can then arise if the dataset gets separated 
from the metadata file.

Cheers

Tom.

On 6/10/05, Jacob Delfos <jacob.delfos at maunsell.com> wrote:
> 
> Hi Tom, 
> 
> Thanks for that explanation. Now I understand where the WGS84/LOCAL info
> keeps coming from. So probably ArcGIS doesn't like that dataset, because 
the
> SDK (or Gdal) didn't put this fake coordinate system in it. It could be
> because of the inverted Y sign, but if I copy the .tfw (of the original 
TIF)
> to a .eww, ArcGIS reads and registers the ECW fine. 
> 
> Regarding rotated and sheared registrations: ArcGIS allows you to
> georeference an ECW, and as long as you use an affine projection, it will
> create a .eww file for it (with rotation or shear if applicable). So is 
this
> technically incorrect? 
> 
> regards, 
> 
> Jacob
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Tom Lynch [mailto:tflynch at gmail.com] 
> Sent: 10 June 2005 09:43
> To: Delfos, Jacob
> Cc: gdal-dev at remotesensing.org
> Subject: Re: [Gdal-dev] ECW registration information not recognised in 
ESRI 
> 
> On 6/10/05, Delfos, Jacob <jacob.delfos at maunsell.com> wrote:
> > 
> > 
> > Hi All, 
> > 
> > Have a bit of a mystery: 
> > 
> > I am translating some geotiffs to ecw. These geotiffs have their
> geographic
> > information internally in the headers, as well as in a tfw file. They 
all
> > translate fine, and the coordinate information in the ecw file is
> recognised
> > in ESRI ArcGIS. 
> <snip> 
> 
> Hi Jacob, 
> 
> There are some subtleties in ECW georeferencing, which I can explain
> for you. I think the issue you're seeing is probably a minor flaw in
> GDAL, though I haven't checked this. 
> 
> ER Mapper uses a proprietary georeferencing system called GDT (which
> AFAIK predates the popularisation of EPSG) in which a dataset is
> referenced by a projection string, a datum string, and registration
> information. 
> 
> This data is embedded in a binary header of an ECW file, and includes
> x and y origins, x and y cell sizes, and cell size units, as well as
> the projection and datum. For example, "WGS84/GEODETIC" is one of the
> most common datum/projection pairs, corresponding to EPSG code 4326. 
> 
> ER Mapper supports importing datasets with EPSG codes using an
> in-built correspondence between EPSG and GDT. Usually non-geographic
> rasters are stored with RAW/RAW as their projection/datum. However,
> if a raster marked RAW/RAW also contains embedded georeferencing
> information (such as you might find in a TFW) indicating it has a
> geographical purpose, it is imported into ER Mapper software with a
> "fake" projection/datum "WGS84/LOCAL" allowing it to be world-aligned
> with datasets in other map layers. 
> 
> There are several flaws in the system. One of them is that the
> EPSG<-->GDT correspondence is not 1-1, so converting between a GeoTIFF
> and an ECW file and back again may lose or change the referencing. 
> Another is that ECW does not support the storage of rotated or sheared
> registrations (only origin and pixel scale are supported). Finally,
> non-EPSG coordinate system information embedded in a GeoTIFF will
> usually be ignored by ER Mapper software at this point in time. 
> 
> As far as registration is concerned, the ECW JPEG 2000 SDK is fairly
> "blind" concerning the binary values stored in the registration area
> of an ECW file, so third party applications may store invalid data in
> this location. ArcGIS is one application that has problems if (for
> example) the sign of the y cellsize is inverted. So that's probably
> the reason you can't view the GDAL-translated file in ArcGIS with the
> ECW plug-in. 
> 
> -- 
> Tom Lynch
> Development, ER Mapper
> Phone: +61 8 93882900
> Fax: +61 8 93882901
> Email: tom.lynch at ermapper.com
> Web: http://www.ermapper.com
> Forums: http://forum.ermapper.com
> 
> 
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at xserve.flids.com
> http://xserve.flids.com/mailman/listinfo/gdal-dev
> 
> 
> 


-- 
Tom Lynch
Development, ER Mapper
Phone: +61 8 93882900
Fax: +61 8 93882901
Email: tom.lynch at ermapper.com
Web: http://www.ermapper.com
Forums: http://forum.ermapper.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20050613/109d1dc8/attachment.html


More information about the Gdal-dev mailing list