Opened 17 years ago

Closed 16 years ago

#1527 closed defect (fixed)

Gdalwarp - GeoTiff creation option PROFILE ineffective

Reported by: quickstuff@… Owned by: warmerdam
Priority: normal Milestone: 1.6.0
Component: GDAL_Raster Version: 1.4.0
Severity: normal Keywords: gtiff
Cc:

Description (last modified by warmerdam)

When exporting to GeoTiff with Gdalwarp, the creation option -co PROFILE=GeoTIFF or -co PROFILE=BASELINE is ignored. The geotiff dataset is always created with GeoTiff tags (and GDALGeoTiff tags, if any).

Tested under FWTools/Win32 1.2.3.

Change History (6)

comment:1 by warmerdam, 17 years ago

Some aspects of the PROFILE creation option only work when CreateCopy()
is used, not Create().  Gdalwarp uses Create(). 

This is quite confusing, and isn't strictly necessary.  The Create method
could be changed to associate the profile with the produced dataset, and 
avoid writing stuff to it that violates the the profile requirements.  

This will be a somewhat tricky change, and I judge it to not belong in 
the 1.4 branch, just trunk.  So I'm going to defer it a while so we
can concentrate on 1.4. 

comment:5 by warmerdam, 17 years ago

Description: modified (diff)
Milestone: 1.5.0
Priority: highestnormal

comment:6 by Even Rouault, 17 years ago

This is closely related to #1513

comment:7 by Even Rouault, 17 years ago

Sorry, typo, this is closely related to #1173

comment:8 by warmerdam, 16 years ago

Component: defaultGDAL_Raster
Keywords: gtiff added
Milestone: 1.5.01.6.0

comment:9 by warmerdam, 16 years ago

Resolution: fixed
Status: assignedclosed

I have corrected enforcement of PROFILE for Create and CreateCopy in trunk (r14033) and added some regression tests (r14032).

No plans to retrofit it to 1.5 branch since it is somewhat dangerous.

Note: See TracTickets for help on using tickets.