[gdal-dev] How to use RPC Metadata from NITF Files in a MapServer TileIndex

2012-06-17 Thread Smith, Michael ERDC-RDE-CRREL-NH
I have a large number of NITF JP2K files. These files have IGEOLO metadata to the second accuracy so reprojecting these images leads to poor results. The images also have rpc metadata and using the -rpc option in gdalwarp reprojects them quite well. These files are source epsg:4326 and need to b

Re: [gdal-dev] How to use RPC Metadata from NITF Files in a MapServer TileIndex

2012-06-17 Thread Even Rouault
Le dimanche 17 juin 2012 18:24:29, Smith, Michael ERDC-RDE-CRREL-NH a écrit : > I have a large number of NITF JP2K files. These files have IGEOLO metadata > to the second accuracy so reprojecting these images leads to poor results. > The images also have rpc metadata and using the -rpc option in gd

Re: [gdal-dev] How to use RPC Metadata from NITF Files in a MapServer TileIndex

2012-06-17 Thread Smith, Michael ERDC-RDE-CRREL-NH
I did originally use -dstalpha. I had dropped it when creating the geotiffs as I used PHOTOMETRIC=YCBCR as a creation option. I'll try with -dstalpha and dropping the YCBCR. Is there a known issue with using the vrts inside a tileindex that makes it so slow? -- This is what I used to convert to

Re: [gdal-dev] How to use RPC Metadata from NITF Files in a MapServer TileIndex

2012-06-17 Thread Even Rouault
Le dimanche 17 juin 2012 18:45:01, Smith, Michael ERDC-RDE-CRREL-NH a écrit : > I did originally use -dstalpha. I had dropped it when creating the > geotiffs as I used PHOTOMETRIC=YCBCR as a creation option. > > I'll try with -dstalpha and dropping the YCBCR. Ah, ok, JPEG compression is indeed in

Re: [gdal-dev] How to use RPC Metadata from NITF Files in a MapServer TileIndex

2012-06-17 Thread Even Rouault
Actually, you'll need to add "--config GDAL_TIFF_INTERNAL_MASK YES" to the 2 following commands : gdal_translate -b 1 -b 2 -b 3 -mask 4 -co "TILED=YES" -co "JPEG_QUALITY=95" - co "COMPRESS=JPEG" -co "PHOTOMETRIC=YCBCR" $1.vrt $1.tif --config GDAL_TIFF_INTERNAL_MASK YES gdaladdo --config COMPRE

Re: [gdal-dev] How to use RPC Metadata from NITF Files in a MapServer TileIndex

2012-06-17 Thread Smith, Michael ERDC-RDE-CRREL-NH
Thanks Even. This is working well. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 6/17/12 1:10 PM, "Even Rouault" wrote: >Actually, you'll need to add "--config GDAL_TIFF_INTERNAL_MASK YES" to >the 2 >following commands : > >gdal_translate -b 1 -b 2 -b 3 -mask 4 -co "TI