Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#5352 closed defect (fixed)

JPGDataset doesn't allow to establish own GCPs

Reported by: oleinik Owned by: warmerdam
Priority: normal Milestone: 1.11.0
Component: GDAL_Raster Version: 1.10.1
Severity: normal Keywords:
Cc:

Description (last modified by oleinik)

PAMDataset has own implementation GetGCPs and SetGCPs. JPGDataset inherits from PAMDataset and reimplements GetGCPs to load GCPs from TAB files, but SetGCPs not. As result SetGCPs uses structures from PAMDataset, GetGCPs - from JPGDataset. How can I use my own GCPs through SetGCPs/GetGCPs and .aux.xml files with JPEGs?

Change History (4)

comment:1 by oleinik, 10 years ago

Description: modified (diff)

comment:2 by Even Rouault, 10 years ago

Looking at the code, yes, you're a bit stuck. GetGCPs(), GetGCPCount() and GetGCPProjection() should be modified to fallback to PAM if there's nothing from TAB file (or perhaps the other way round)

comment:3 by Even Rouault, 10 years ago

Milestone: 2.0
Resolution: fixed
Status: newclosed

trunk r26840 "JPEG: allow fallback to PAM to read GCPs; give priority to PAM GeoTransform if it exists and other source of geotransform (.wld, .tab) also exists (#5352)"

comment:4 by Even Rouault, 10 years ago

Milestone: 2.01.11.0
Note: See TracTickets for help on using tickets.