#5948 closed enhancement (fixed)
GeoJP2 box : no RPC coefficient inside the included GeoTIFF image
Reported by: | bugbuster | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 2.0.0 |
Component: | default | Version: | 1.10.1 |
Severity: | normal | Keywords: | rpc jpeg2000 |
Cc: |
Description
I have a GeoTIFF image, containing RPC coefficients. When I convert it to JPEG2000, with GeoJP2 box only, the RPC coefficients are saved in an auxiliary file (.aux.xml). I would expect to get the complete geolocation model within the 1X1 Geotiff image, included inside the GeoJP2 box.
I would expect the same when converting an NITF image containing RPC model location.
With the attached files, here are the several steps to illustrate it :
- Input image : TiffRPC.tif (with RPC coefficient inside GeoTIFF header)
- Command Line (with Kakadu plugin) :
gdal_translate -of JP2KAK -co GeoJP2=YES -co GMLJP2=NO TiffRPC.tif TiffRPC.jp2
- After renaming auxiliary file TiffRPC.jp2.aux.xml, I only have the origin location and pixel size :
prompt > mv TiffRPC.jp2.aux.xml TiffRPC.jp2.aux.xml.FORGET_IT prompt > gdalinfo TiffRPC_kakadu.jp2 Driver: JP2KAK/JPEG-2000 (based on Kakadu) Files: TiffRPC_kakadu.jp2 Size is 870, 544 Coordinate System is: PROJCS["WGS 84 / UTM zone 23S", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-45], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",10000000], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","32723"]] Origin = (679603.199999999950000,7467345.599999999600000) Pixel Size = (12.008275862068965,-12.000000000000000) Metadata: Corder=PCRL Corner Coordinates: Upper Left ( 679603.200, 7467345.600) ( 43d14'56.53"W, 22d53'31.93"S) Lower Left ( 679603.200, 7460817.600) ( 43d14'53.80"W, 22d57' 4.12"S) Upper Right ( 690050.400, 7467345.600) ( 43d 8'50.01"W, 22d53'27.77"S) Lower Right ( 690050.400, 7460817.600) ( 43d 8'47.13"W, 22d56'59.96"S) Center ( 684826.800, 7464081.600) ( 43d11'51.87"W, 22d55'15.97"S) Band 1 Block=870x544 Type=Byte, ColorInterp=Gray Overviews: 435x272, 218x136, 109x68 Image Structure Metadata: COMPRESSION=JP2000
Attachments (2)
Change History (6)
by , 9 years ago
Attachment: | TiffRPC.tif added |
---|
follow-up: 2 comment:1 by , 9 years ago
Keywords: | rpc jpeg2000 added |
---|---|
Milestone: | → 2.0 |
Resolution: | → fixed |
Status: | new → closed |
Type: | defect → enhancement |
follow-up: 3 comment:2 by , 9 years ago
Dear Even,
this is great news. And a pretty quick answer ! Do you think it might be possible to have this improvement in the "current" branch, say 1.11.x, instead of the "future" 2.0 ? Thanks Philippe
comment:3 by , 9 years ago
Replying to bugbuster:
Dear Even,
this is great news. And a pretty quick answer ! Do you think it might be possible to have this improvement in the "current" branch, say 1.11.x, instead of the "future" 2.0 ?
This is a new feature, not appropriate for the stable branch. Especially since it modifies the C++ ABI.
Tiff image, with RPC coefficients