Ticket #3072 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

[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

Changed 4 years ago by rouault

  • owner changed from warmerdam to ilucena
  • priority changed from highest to normal
  • summary changed from CreateCopy can't Compress Data? to [GEORASTER] CreateCopy can't Compress Data?

Changed 4 years ago by rouault

  • cc tamas added
  • owner ilucena deleted

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.

Changed 4 years ago by warmerdam

  • keywords georaster added
  • owner set to ilucena

Changed 4 years ago by ilucena

  • status changed from new to closed
  • resolution set to fixed

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.