Opened 15 years ago

Closed 15 years ago

#3072 closed defect (fixed)

[GEORASTER] CreateCopy can't Compress Data?

Reported by: bicealyh Owned by: ilucena
Priority: normal Milestone:
Component: GDAL_Raster Version: 1.6.1
Severity: normal Keywords: georaster
Cc: tamas

Description

I use C# languge methods --CreateCopy(pszDest, ds, 0, papszCreateOptions, pfnProgress, null) to import raster data to georaster. I have confirmed that I use the Parameters -co "COMPRESS=DEFLATE", but when I use GeorasterView to see the MetaData. It give me that the Compression type is NONE.

but if I use the gdal_tranlate methods,it can give me the right result)--the Compression type is DEFLATE.

So I think the CreateCopy methods maybe have some problems.I use the data which I have given you.

Change History (4)

comment:1 by Even Rouault, 15 years ago

Owner: changed from warmerdam to ilucena
Priority: highestnormal
Summary: CreateCopy can't Compress Data?[GEORASTER] CreateCopy can't Compress Data?

comment:2 by Even Rouault, 15 years ago

Cc: tamas added
Owner: ilucena removed

Sorry for bugging you Ivan. Apparently, I read the ticket description too fast

Here are a few follow-ups sent by Ivan Lucena and Frank Warmerdam in my mail box :

As far as I know a GDALs driver doesn't know who is calling its "CreateCopy()" method. So, if "COMPRESS" works for 
gdal_translate it should works for C#, Python, Java, etc. Right?

Wouldn't that be a general problem on the C# wrapper?

Regards,

Ivan
Ivan,

You are correct.  If COMPRESS=DEFLATE works with gdal_translate, then it
ought to work from C# as well.  Perhaps the developer did not pass the
option properly in C#?

Best regards,

CC'ing Tamas in case he might have an idea about the C# part of it.

comment:3 by warmerdam, 15 years ago

Keywords: georaster added
Owner: set to ilucena

comment:4 by ilucena, 15 years ago

Resolution: fixed
Status: newclosed

We didn't get any feedback from the user but it seams that the problem was located on the call to CreateCopy on the C# user code. It could be that the create-option COMPRESS with value "DEFLATE" was missing or misspell.

Note: See TracTickets for help on using tickets.