Changes between Initial Version and Version 4 of Ticket #6293


Ignore:
Timestamp:
Jan 6, 2016 12:04:50 PM (4 years ago)
Author:
edjansing
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6293 – Description

    initial v4  
    11Attempting to use gdalwarp to georegister several MSI tiles from Airbus' Pleiades sensor.  A single area is provided in several tiles.  In this example, here is the MSI directory listing with two tiles:
    22
    3 {{{DIM_PHR1A_MS_201509141606268_SEN_1627093101-002.XML
     3{{{
     4DIM_PHR1A_MS_201509141606268_SEN_1627093101-002.XML
    45ICON_PHR1A_MS_201509141606268_SEN_1627093101-002.JPG
    56IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R1C1.TFW
     
    1314PREVIEW_PHR1A_MS_201509141606268_SEN_1627093101-002.JPG
    1415PREVIEW_PHR1A_MS_201509141606268_SEN_1627093101-002.KMZ
    15 RPC_PHR1A_MS_201509141606268_SEN_1627093101-002.XML}}}
     16RPC_PHR1A_MS_201509141606268_SEN_1627093101-002.XML
     17}}}
    1618
    1719The TFW files are unique between the two tiles.  When I import the tiles into qgis, without any modification, it stitches them together properly, but they are not in the proper CRS (they are essentially referenced to pixel space, not to any CRS coordinate system).
     
    1921When I use gdalwarp to put them in EPSG:4326, the first image is perfectly registered (the image with R1C1 as a suffix).  The command used:
    2022
    21 {{{gdalwarp -rpc IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R1C1.TIF IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R1C1_projected.TIF}}}
     23{{{
     24gdalwarp -rpc IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R1C1.TIF IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R1C1_projected.TIF
     25}}}
    2226
    2327When I then gdalwarp the second image:
    2428
    25 {{{gdalwarp -rpc IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R2C1.TIF IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R2C1_projected.TIF}}}
     29{{{
     30gdalwarp -rpc IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R2C1.TIF IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R2C1_projected.TIF
     31}}}
    2632
    2733The second image does not get stitched at the bottom of the first image, but is placed at the top of the image, as if the tile starts at the same lat/lon coordinate (or at the same pixel location, whichever).
     
    3238gdalinfo on two original images:
    3339
    34 {{{$ gdalinfo IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R1C1.TIF
     40{{{
     41$ gdalinfo IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R1C1.TIF
    3542Driver: GTiff/GeoTIFF
    3643Files: IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R1C1.TIF
     
    96103    STATISTICS_MINIMUM=0
    97104    STATISTICS_STDDEV=266.56884586952
    98 Band 4 Block=9458x1 Type=UInt16, ColorInterp=Undefined}}}
     105Band 4 Block=9458x1 Type=UInt16, ColorInterp=Undefined
     106}}}
    99107
    100 {{{$ gdalinfo IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R2C1.TIF
     108{{{
     109$ gdalinfo IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R2C1.TIF
    101110Driver: GTiff/GeoTIFF
    102111Files: IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R2C1.TIF
     
    162171    STATISTICS_MINIMUM=0
    163172    STATISTICS_STDDEV=187.78652664007
    164 Band 4 Block=9458x1 Type=UInt16, ColorInterp=Undefined}}}
     173Band 4 Block=9458x1 Type=UInt16, ColorInterp=Undefined
     174}}}
    165175
    166176TFW files:
    167177
    168 {{{$ cat IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R1C1.TFW
     178{{{
     179$ cat IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R1C1.TFW
    1691804.00000000000000
    1701810
     
    172183-4.00000000000000
    1731841.00000000000000
    174 1.00000000000000}}}
     1851.00000000000000
     186}}}
    175187
    176 {{{$ cat IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R2C1.TFW
     188{{{
     189$ cat IMG_PHR1A_MS_201509141606268_SEN_1627093101-002_R2C1.TFW
    1771904.00000000000000
    1781910
     
    180193-4.00000000000000
    1811941.00000000000000
    182 -59999.00000000000000}}}
     195-59999.00000000000000
     196}}}