[GRASS-user] File formats in r.in.gdal

Hi,

In Grass 6.2, Ubuntu build (yes, there's a more recent version but not yet for the right build), when importing ECWs in r.in.gdal, I receive the "not a supported file format" error. Any ideas?

The same error occurs with Globe DEM files (although Globe DEM has been reorganised and I'm not sure I have found the right header files).

Richard Chirgwin

Richard Chirgwin wrote:

In Grass 6.2, Ubuntu build (yes, there's a more recent version but not
yet for the right build), when importing ECWs in r.in.gdal, I receive
the "not a supported file format" error. Any ideas?

The same error occurs with Globe DEM files (although Globe DEM has been
reorganised and I'm not sure I have found the right header files).

Your copy of GDAL has to be built with support for those formats. Once it
is, r.in.gdal should be able to read it.

check with:
gdalinfo --formats

if ECW is not there you will need to rebuild GDAL with support for those.

I am pretty sure that ECW support is not built by default.
see http://www.gdal.org/frmt_ecw.html

Now that ERmapper has been bought by Leica (apparently erdas has too),
obtaining the SDK has changed as they have a much different view of open
source:
"Product enhancements, including:
  * no more restrictions on the distribution of 'Server Software' under
the GPL-style Public Use License Agreement"

.... but what has that been replaced by? Moved to BSD-like or proprietary?
The binary SDK is only available for Windows, so you may be forced to use
GDAL for Windows to export to GeoTiff. ? Hopefully the new license is
usable for Linux, I don't know. They still offer the source, which is
encouraging.

good luck,
Hamish

      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Hamish wrote:

Richard Chirgwin wrote:
  
In Grass 6.2, Ubuntu build (yes, there's a more recent version but not 
yet for the right build), when importing ECWs in r.in.gdal, I receive 
the "not a supported file format" error. Any ideas?

The same error occurs with Globe DEM files (although Globe DEM has been
reorganised and I'm not sure I have found the right header files).
    

Your copy of GDAL has to be built with support for those formats. Once it
is, r.in.gdal should be able to read it.

check with:
 gdalinfo --formats

if ECW is not there you will need to rebuild GDAL with support for those.

I am pretty sure that ECW support is not built by default.
 see [http://www.gdal.org/frmt_ecw.html](http://www.gdal.org/frmt_ecw.html)

Now that ERmapper has been bought by Leica (apparently erdas has too),
obtaining the SDK has changed as they have a much different view of open
source:
"Product enhancements, including:
  * no more restrictions on the distribution of 'Server Software' under
the GPL-style Public Use License Agreement"

.... but what has that been replaced by? Moved to BSD-like or proprietary?
The binary SDK is only available for Windows, so you may be forced to use
GDAL for Windows to export to GeoTiff.   ? Hopefully the new license is
usable for Linux, I don't know. They still offer the source, which is
encouraging.

good luck,
Hamish
  

Thanks, Hamish - I didn’t realise about the build issue. It may be easier to avoid ECW!

However, I have overcome the Globe DEM problem by using a different download method…

Richard

I didn't realise about the build issue. It may be easier to avoid ECW!

If you are worried about using ECW long-term ask about it on the GDAL
mailing list before you do anything too drastic; you'll get better advice
from the folks there.

Hamish

      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

On Tue, 2008-04-22 at 00:43 -0700, Hamish wrote:

Richard Chirgwin wrote:
> In Grass 6.2, Ubuntu build (yes, there's a more recent version but not
> yet for the right build), when importing ECWs in r.in.gdal, I receive
> the "not a supported file format" error. Any ideas?
>
> The same error occurs with Globe DEM files (although Globe DEM has been
> reorganised and I'm not sure I have found the right header files).

Your copy of GDAL has to be built with support for those formats. Once it
is, r.in.gdal should be able to read it.

check with:
gdalinfo --formats

if ECW is not there you will need to rebuild GDAL with support for those.

I am pretty sure that ECW support is not built by default.
see http://www.gdal.org/frmt_ecw.html

Now that ERmapper has been bought by Leica (apparently erdas has too),
obtaining the SDK has changed as they have a much different view of open
source:
"Product enhancements, including:
  * no more restrictions on the distribution of 'Server Software' under
the GPL-style Public Use License Agreement"

.... but what has that been replaced by? Moved to BSD-like or proprietary?
The binary SDK is only available for Windows, so you may be forced to use
GDAL for Windows to export to GeoTiff. ? Hopefully the new license is
usable for Linux, I don't know. They still offer the source, which is
encouraging.

good luck,
Hamish

The ecw lib has never been offered under a true open source license.
The old license allowed "open source GPL style" use for non commercial
use only. The new license is much more restrictive in some ways.
Certainly gdal can be compiled against the old ecw code. I'm not sure
about the latest ecw lib releases. Either way it's up to you to
determine your licence rights. Beware the old license is inconsistent,
vague, internally contradictory and generally doesn't parse well. FWIW,
I believe it's worth trying to avoid depending on ecw if this is an
issue for you. Having said that, avoiding ecw may well not be a viable
option, in which case you may have to look at a commercial license for
it.

HTH,
Tim Bowden

Tim Bowden said :

The ecw lib has never been offered under a true open source license.
The old license allowed "open source GPL style" use for non commercial
use only. The new license is much more restrictive in some ways.
Certainly gdal can be compiled against the old ecw code. I'm not sure
about the latest ecw lib releases. Either way it's up to you to
determine your licence rights. Beware the old license is inconsistent,
vague, internally contradictory and generally doesn't parse well. FWIW,
I believe it's worth trying to avoid depending on ecw if this is an
issue for you. Having said that, avoiding ecw may well not be a viable
option, in which case you may have to look at a commercial license for
it.

My understanding is that ecw and jpeg2000 share some compression
technology. Is jpeg2000 a viable replacement for ecw? Are the
liscencing conditions for jpeg2000 more favourable for
open source?

nick

***********************************************************************
WARNING: This e-mail (including any attachments) may contain legally
privileged, confidential or private information and may be protected by
copyright. You may only use it if you are the person(s) it was intended
to be sent to and if you use it in an authorised way. No one is
allowed to use, review, alter, transmit, disclose, distribute, print
or copy this e-mail without appropriate authority.

If this e-mail was not intended for you and was sent to you by mistake,
please telephone or e-mail me immediately, destroy any hardcopies of
this e-mail and delete it and any copies of it from your computer
system. Any right which the sender may have under copyright law, and
any legal privilege and confidentiality attached to this e-mail is not
waived or destroyed by that mistake.

It is your responsibility to ensure that this e-mail does not contain
and is not affected by computer viruses, defects or interference by
third parties or replication problems (including incompatibility with
your computer system).

Opinions contained in this e-mail do not necessarily reflect the
opinions of the Queensland Department of Main Roads, Queensland
Transport or Maritime Safety Queensland, or endorsed organisations
utilising the same infrastructure.
***********************************************************************

nicholas.g.lawrence@mainroads.qld.gov.au wrote:

Tim Bowden said :

The ecw lib has never been offered under a true open source license.
The old license allowed "open source GPL style" use for non commercial
use only. The new license is much more restrictive in some ways.
Certainly gdal can be compiled against the old ecw code. I'm not sure
about the latest ecw lib releases. Either way it's up to you to
determine your licence rights. Beware the old license is inconsistent,
vague, internally contradictory and generally doesn't parse well. FWIW,
I believe it's worth trying to avoid depending on ecw if this is an
issue for you. Having said that, avoiding ecw may well not be a viable
option, in which case you may have to look at a commercial license for
it.

My understanding is that ecw and jpeg2000 share some compression
technology. Is jpeg2000 a viable replacement for ecw? Are the
liscencing conditions for jpeg2000 more favourable for
open source?

Nick,

JPEG2000 fills a similar role to ECW (or MrSID) - a lossy high compression
format. There are several implementations of JPEG2000 (as opposed to only
one I know for ECW) which is good. One or two are true open source including
the JasPer library which is used in the GDAL JPEG2000 driver. There are
also three other GDAL JPEG2000 drivers based on proprietary libraries.
They are the MrSID SDK, the ECW SDK and the Kakadu library (JP2MRSID,
JP2ECW and JP2KAK drivers respectively).

Unfortunately the JasPer library is not suitable for large geospatial
images because it assumes the whole image can be decoded in memory. So
this is only useful if you work with very modest sized images.

This leaves us, for the time being, in the position where there is no
good GDAL JPEG2000 driver that is truely open source. However, at least
you have more options with JPEG2000.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org