<div dir="ltr">Here's the gdalinfo output:<br><div><br>gdalinfo /vsis3/glitch253/test2.ntf<br>Driver: NITF/National Imagery Transmission Format<br>Files: /vsis3/glitch253/test2.ntf<br>Size is 43008, 44032<br>Coordinate System is `'<br>GCP Projection = <br>GEOGCS["WGS 84",<br> DATUM["WGS_1984",<br> SPHEROID["WGS 84",6378137,298.257223563,<br> AUTHORITY["EPSG","7030"]],<br> AUTHORITY["EPSG","6326"]],<br> PRIMEM["Greenwich",0,<br> AUTHORITY["EPSG","8901"]],<br> UNIT["degree",0.0174532925199433,<br> AUTHORITY["EPSG","9122"]],<br> AUTHORITY["EPSG","4326"]]<br>GCP[ 0]: Id=UpperLeft, Info=<br> (0.5,0.5) -> (-58.5325,-34.5383333333333,0)<br>GCP[ 1]: Id=UpperRight, Info=<br> (43007.5,0.5) -> (-58.6852777777778,-34.5422222222222,0)<br>GCP[ 2]: Id=LowerRight, Info=<br> (43007.5,44031.5) -> (-58.685,-34.4083333333333,0)<br>GCP[ 3]: Id=LowerLeft, Info=<br> (0.5,44031.5) -> (-58.5327777777778,-34.4044444444444,0)<br>Metadata:<br> NITF_ABPP=11<br> NITF_CCS_COLUMN=0<br> NITF_CCS_ROW=0<br> NITF_CLEVEL=06<br> NITF_CSDIDA_DAY=15<br> NITF_CSDIDA_MONTH=MAR<br> NITF_CSDIDA_OPERATION=000<br> NITF_CSDIDA_PASS=10<br> NITF_CSDIDA_PLATFORM_CODE=WV<br> NITF_CSDIDA_PROCESS_TIME=20151202180732<br> NITF_CSDIDA_PRODUCT_ID=P1<br> NITF_CSDIDA_RESERVED_0=0000<br> NITF_CSDIDA_RESERVED_1=00<br> NITF_CSDIDA_RESERVED_2=01<br> NITF_CSDIDA_RESERVED_3=N<br> NITF_CSDIDA_RESERVED_4=N<br> NITF_CSDIDA_SENSOR_ID=AA<br> NITF_CSDIDA_SOFTWARE_VERSION_NUMBER=4.45.6.1<br> NITF_CSDIDA_TIME=20150315140133<br> NITF_CSDIDA_VEHICLE_ID=03<br> NITF_CSDIDA_YEAR=2015<br> NITF_CSEXRA_ALONG_SCAN_GSD=013.5<br> NITF_CSEXRA_ANGLE_TO_NORTH=270.000<br> NITF_CSEXRA_AZ_OF_OBLIQUITY=198.341<br> NITF_CSEXRA_A_S_VERT_GSD=N/A<br> NITF_CSEXRA_CIRCL_ERR=016<br> NITF_CSEXRA_CROSS_SCAN_GSD=013.0<br> NITF_CSEXRA_C_S_VERT_GSD=N/A<br> NITF_CSEXRA_DYNAMIC_RANGE=01945<br> NITF_CSEXRA_GEO_MEAN_GSD=013.3<br> NITF_CSEXRA_GEO_MEAN_VERT_GSD=N/A<br> NITF_CSEXRA_GRD_COVER=9<br> NITF_CSEXRA_GSD_BETA_ANGLE=091.8<br> NITF_CSEXRA_LINEAR_ERR=016<br> NITF_CSEXRA_MAX_GSD=013.3<br> NITF_CSEXRA_NUM_LINES=0044032<br> NITF_CSEXRA_NUM_SAMPLES=43008<br> NITF_CSEXRA_OBLIQUITY_ANGLE=16.568<br> NITF_CSEXRA_PREDICTED_NIIRS=5.6<br> NITF_CSEXRA_SENSOR=PAN<br> NITF_CSEXRA_SNOW_DEPTH_CAT=9<br> NITF_CSEXRA_SUN_AZIMUTH=048.094<br> NITF_CSEXRA_SUN_ELEVATION=+47.090<br> NITF_CSEXRA_TIME_FIRST_LINE_IMAGE=50493.612175<br> NITF_CSEXRA_TIME_IMAGE_DURATION=-0002.160750<br> NITF_ENCRYP=0<br> NITF_FBKGC=126,126,126<br> NITF_FDT=20151203163736<br> NITF_FHDR=NITF02.10<br> NITF_FSCATP=<br> NITF_FSCAUT=<br> NITF_FSCLAS=U<br> NITF_FSCLSY=US<br> NITF_FSCLTX=<br> NITF_FSCODE=<br> NITF_FSCOP=00000<br> NITF_FSCPYS=00000<br> NITF_FSCRSN=<br> NITF_FSCTLH=0<br> NITF_FSCTLN=<br> NITF_FSDCDT=<br> NITF_FSDCTP=<br> NITF_FSDCXM=<br> NITF_FSDG=<br> NITF_FSDGDT=<br> NITF_FSREL=<br> NITF_FSSRDT=<br> NITF_FTITLE=15MAR15WV031000015MAR15140133-P1BS-500497284070_01_P001 AAE 0AAAAABPABQ0<br> NITF_IALVL=0<br> NITF_IC=C8<br> NITF_ICAT=VIS<br> NITF_ICORDS=G<br> NITF_IDATIM=20150315140133<br> NITF_IDLVL=1<br> NITF_IGEOLO=343218S0583157W343232S0584107W342430S0584106W342416S0583158W<br> NITF_IID1=P109BED300<br> NITF_IID2=15MAR15WV031000015MAR15140133-P1BS-500497284070_01_P001 AAE 0AAAAABPABQ0<br> NITF_ILOC_COLUMN=0<br> NITF_ILOC_ROW=0<br> NITF_IMAG=1.0 <br> NITF_IMAGE_COMMENTS=The imagery and metadata data on this media is the property of DigitalGlobe and is licensed for use only. All use must be in accordance with the terms of the license that accompanies the media. If the license is purchased under contract NMA 301 99 D003, use is in accordance with the license therein <br> NITF_IMODE=B<br> NITF_IREP=MONO<br> NITF_ISCATP=<br> NITF_ISCAUT=<br> NITF_ISCLAS=U<br> NITF_ISCLSY=US<br> NITF_ISCLTX=<br> NITF_ISCODE=<br> NITF_ISCRSN=<br> NITF_ISCTLH=0<br> NITF_ISCTLN=<br> NITF_ISDCDT=<br> NITF_ISDCTP=<br> NITF_ISDCXM=<br> NITF_ISDG=<br> NITF_ISDGDT=<br> NITF_ISORCE=DigitalGlobe<br> NITF_ISREL=<br> NITF_ISSRDT=<br> NITF_ONAME=<br> NITF_OPHONE=<br> NITF_OSTAID=NDL-W<br> NITF_PIAIMC_CAMSPECS=<br> NITF_PIAIMC_CLOUDCVR=000<br> NITF_PIAIMC_COMGEN=00<br> NITF_PIAIMC_ESD=Y<br> NITF_PIAIMC_GENERATION=1<br> NITF_PIAIMC_IDATUM=WGE<br> NITF_PIAIMC_IELLIP=<br> NITF_PIAIMC_IPROJ=<br> NITF_PIAIMC_MEANGSD=00013.3<br> NITF_PIAIMC_OTHERCOND=<br> NITF_PIAIMC_PIAMSNNUM=<br> NITF_PIAIMC_PREPROC=1R<br> NITF_PIAIMC_PROJID=<br> NITF_PIAIMC_SATTRACK=00000000<br> NITF_PIAIMC_SENSMODE=PUSHBROOM<br> NITF_PIAIMC_SENSNAME=WV03<br> NITF_PIAIMC_SOURCE=VNIR: 1040010009BED300<br> NITF_PIAIMC_SRP=Y<br> NITF_PIAIMC_SUBQUAL=<br> NITF_PJUST=R<br> NITF_PVTYPE=INT<br> NITF_STDIDC_ACQUISITION_DATE=20150315140133<br> NITF_STDIDC_COUNTRY=AR<br> NITF_STDIDC_END_COLUMN=042<br> NITF_STDIDC_END_ROW=00043<br> NITF_STDIDC_END_SEGMENT=AA<br> NITF_STDIDC_LOCATION=3432S05837W<br> NITF_STDIDC_MISSION=WV03<br> NITF_STDIDC_OP_NUM=000<br> NITF_STDIDC_PASS=10<br> NITF_STDIDC_REPLAY_REGEN=000<br> NITF_STDIDC_REPRO_NUM=00<br> NITF_STDIDC_START_COLUMN=001<br> NITF_STDIDC_START_ROW=00001<br> NITF_STDIDC_START_SEGMENT=AA<br> NITF_STDIDC_WAC=<br> NITF_STYPE=BF01<br> NITF_TGTID=<br> NITF_USE00A_ANGLE_TO_NORTH=270<br> NITF_USE00A_DYNAMIC_RANGE=02046<br> NITF_USE00A_MAX_LP_SEG=043216<br> NITF_USE00A_MEAN_GSD=013.3<br> NITF_USE00A_N_REF=00<br> NITF_USE00A_N_SEG=001<br> NITF_USE00A_OBL_ANG=16.57<br> NITF_USE00A_REV_NUM=03174<br> NITF_USE00A_ROLL_ANG=-05.54<br> NITF_USE00A_SUN_AZ=048.1<br> NITF_USE00A_SUN_EL=+47.1<br>Image Structure Metadata:<br> COMPRESSION=JPEG2000<br>Subdatasets:<br> SUBDATASET_1_NAME=NITF_IM:0:/vsis3/glitch253/test2.ntf<br> SUBDATASET_1_DESC=Image 1 of /vsis3/glitch253/test2.ntf<br> SUBDATASET_2_NAME=NITF_IM:1:/vsis3/glitch253/test2.ntf<br> SUBDATASET_2_DESC=Image 2 of /vsis3/glitch253/test2.ntf<br>RPC Metadata:<br> HEIGHT_OFF=30<br> HEIGHT_SCALE=502<br> LAT_OFF=-34.4734<br> LAT_SCALE=0.0703<br> LINE_DEN_COEFF=1 -7.820395e-05 -2.669502e-05 -8.850493e-06 1.414223e-05 -1.548651e-07 -1.060036e-05 4.346602e-05 -0.0001314038 5.799668e-05 2.949456e-07 0 7.908338000000001e-06 0 9.118064000000001e-08 -3.922194e-05 -1.72329e-08 0 -2.018329e-06 0 <br> LINE_NUM_COEFF=0.0002958248 -0.02963833 1.049996 0.02072787 6.667386e-05 1.687254e-06 2.64655e-06 -0.0005267895 -0.0002565297 -1.435182e-06 -6.953109e-07 -1.344296e-06 -9.874576e-06 -1.732024e-06 4.611917e-05 0.0002160089 6.110935e-05 9.296905e-07 7.265858e-06 1.203192e-06 <br> LINE_OFF=21607<br> LINE_SCALE=21608<br> LONG_OFF=-58.6088<br> LONG_SCALE=0.077<br> MAX_LAT=-34.43825<br> MAX_LONG=-58.5703<br> MIN_LAT=-34.50855<br> MIN_LONG=-58.6473<br> SAMP_DEN_COEFF=1 -1.469918e-05 -0.0006828607 -0.0004498713 -2.440384e-05 1.574905e-07 -6.752665e-07 2.77071e-06 -8.888868e-06 -1.083016e-06 -3.791422e-08 0 -4.670506e-07 0 7.583037e-08 -1.150001e-06 0 0 -4.552579e-08 0 <br> SAMP_NUM_COEFF=-0.00126101 -1.009822 -3.573786e-05 -0.007359501 -0.0006781537 -0.0004362946 0.0001916278 0.001249532 -0.0006199303 1.366175e-06 -7.346167e-07 3.531102e-06 -5.858416e-06 7.633005e-07 -5.325952e-06 0.0002869756 4.350662e-07 7.059197e-07 1.735672e-05 1.023288e-08 <br> SAMP_OFF=21249<br> SAMP_SCALE=21250<br>Corner Coordinates:<br>Upper Left ( 0.0, 0.0)<br>Lower Left ( 0.0,44032.0)<br>Upper Right (43008.0, 0.0)<br>Lower Right (43008.0,44032.0)<br>Center (21504.0,22016.0)<br>Band 1 Block=1024x1024 Type=UInt16, ColorInterp=Gray<br> Overviews: 21504x22016, 10752x11008, 5376x5504, 2688x2752, 1344x1376<br> Overviews: arbitrary<br> Image Structure Metadata:<br> COMPRESSION=JPEG2000<br> NBITS=11<br><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 24, 2017 at 3:59 AM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div style="font-family:"Sans Serif";font-size:9pt;font-weight:400;font-style:normal">
<p style="margin:0px;text-indent:0px">Mike,</p><span class="gmail-">
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> I'm having an issue with VSIS3 on the Digital Globe multiview-stereo</p>
<p style="margin:0px;text-indent:0px">> imagery collection.</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> Here is an example command I'm running --</p>
<p style="margin:0px;text-indent:0px">> gdal_translate -srcwin 000 000 1000 1000 /vsis3/glitch253/test2.ntf</p>
<p style="margin:0px;text-indent:0px">> from_s3.nitf</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> So I'm simply cropping out an upper left 1000x1000 window. When I've done</p>
<p style="margin:0px;text-indent:0px">> this previously on data such as Landsat, this command would run very fast,</p>
<p style="margin:0px;text-indent:0px">> and only appear to download the necessary data.</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> The problem I'm having is that on this Digital Globe data, the command runs</p>
<p style="margin:0px;text-indent:0px">> very slowly and appears to download the entire image.</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> Is there a workaround for this?</p>
<p style="margin:0px;text-indent:0px"> </p>
</span><p style="margin:0px;text-indent:0px">I'm not sure if there's something to do on the GDAL side. This might strongly depend on the pixel layout of the source NITF file. Could you show the output of "gdalinfo /vsis3/glitch253/test2.ntf" ?</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Even</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">-- </p>
<p style="margin:0px;text-indent:0px">Spatialys - Geospatial professional services</p>
<p style="margin:0px;text-indent:0px"><a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a></p></div></blockquote></div><br></div></div></div>