<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to display *.jp2 using ArcGIS Maps SDK for JavaScript in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-jp2-using-arcgis-maps-sdk-for/m-p/1262946#M80431</link>
    <description>&lt;P&gt;So, the issue was the GDAL.&lt;BR /&gt;I have reinstalled it and the converted files started to work.&lt;BR /&gt;My current GDAL version is 3.6.2&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2023 09:45:17 GMT</pubDate>
    <dc:creator>KHTRE</dc:creator>
    <dc:date>2023-03-01T09:45:17Z</dc:date>
    <item>
      <title>How to display *.jp2 using ArcGIS Maps SDK for JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-jp2-using-arcgis-maps-sdk-for/m-p/1261341#M80368</link>
      <description>&lt;P&gt;I have a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://drive.google.com/file/d/1i4ZEmNYlMBpherPDhlMWKbSNE_9RI_gm/view?usp=sharing" target="_blank" rel="nofollow noopener noreferrer"&gt;*.jp2 file&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(&lt;A href="https://docs.google.com/uc?export=download&amp;amp;id=1i4ZEmNYlMBpherPDhlMWKbSNE_9RI_gm" target="_blank" rel="nofollow noopener noreferrer"&gt;direct link if you need it&lt;/A&gt;) and I need to display it as a layer using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/" target="_blank" rel="nofollow noopener noreferrer"&gt;ArcGIS Maps SDK for JavaScript&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I have tried to convert it into COGeoTIFF using OSGeo4W (gdal)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;gdal_translate -of COG -ot UInt16 NC_2022-12-17.jp2 result.tif &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;And it looks like it became COD.&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;This is the result&amp;nbsp;of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;gdalinfo:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;LI-CODE lang="c"&gt;Driver: GTiff/GeoTIFF
Files: resultUint16tiff.tiff
Size is 5249, 3133
Coordinate System is:
GEOGCRS["WGS 84",
    DATUM["World Geodetic System 1984",
        ELLIPSOID["WGS 84",6378137,298.257223563,
            LENGTHUNIT["metre",1,
                ID["EPSG",9001]]]],
    PRIMEM["Greenwich",0,
        ANGLEUNIT["degree",0.0174532925199433,
            ID["EPSG",9122]]],
    CS[ellipsoidal,2],
        AXIS["latitude",north,
            ORDER[1],
            ANGLEUNIT["degree",0.0174532925199433,
                ID["EPSG",9122]]],
        AXIS["longitude",east,
            ORDER[2],
            ANGLEUNIT["degree",0.0174532925199433,
                ID["EPSG",9122]]]]
Data axis to CRS axis mapping: 2,1
Origin = (-102.264268518500003,39.905087963000000)
Pixel Size = (0.000004629600000,-0.000004629600000)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  COMPRESSION=LZW
  INTERLEAVE=PIXEL
  LAYOUT=COG
Corner Coordinates:
Upper Left  (-102.2642685,  39.9050880) (102d15'51.37"W, 39d54'18.32"N)
Lower Left  (-102.2642685,  39.8905834) (102d15'51.37"W, 39d53'26.10"N)
Upper Right (-102.2399677,  39.9050880) (102d14'23.88"W, 39d54'18.32"N)
Lower Right (-102.2399677,  39.8905834) (102d14'23.88"W, 39d53'26.10"N)
Center      (-102.2521181,  39.8978357) (102d15' 7.63"W, 39d53'52.21"N)
Band 1 Block=512x512 Type=UInt16, ColorInterp=Red
  Overviews: 2625x1567, 1313x784, 657x392
Band 2 Block=512x512 Type=UInt16, ColorInterp=Green
  Overviews: 2625x1567, 1313x784, 657x392
Band 3 Block=512x512 Type=UInt16, ColorInterp=Blue
  Overviews: 2625x1567, 1313x784, 657x392&lt;/LI-CODE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;After that I have tried to use it with the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-imagerytilelayer-cog/" target="_blank" rel="nofollow noopener noreferrer"&gt;Imagery Tile Layer&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;But it is not visible on the map. There are no errors in the console.&lt;/P&gt;&lt;P&gt;On the other hand, if I use the file from the example for Imagery Tile Layer (&lt;A href="https://ss6imagery.arcgisonline.com/imagery_sample/landsat8/Bolivia_LC08_L1TP_001069_20190719_MS.tiff" target="_blank" rel="nofollow noopener noreferrer"&gt;this one&lt;/A&gt;) it works perfectly fine.&lt;BR /&gt;&lt;STRONG&gt;So, the issue is not in the code.&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;Here is the result on gdalinfo for the file from Esri example:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;LI-CODE lang="c"&gt;Driver: GTiff/GeoTIFF
Files: Bolivia.tiff
Size is 7661, 7781
Warning 1: PROJ: proj_create_from_database: C:\OSGeo4W\share\proj\proj.db contains DATABASE.LAYOUT.VERSION.MINOR = 1 whereas a number &amp;gt;= 2 is expected. It comes from another PROJ installation.
Warning 1: The definition of projected CRS EPSG:32619 got from GeoTIFF keys is not the same as the one from the EPSG registry, which may cause issues during reprojection operations. Set GTIFF_SRS_SOURCE configuration option to EPSG to use official parameters (overriding the ones from GeoTIFF keys), or to GEOKEYS to use custom values from GeoTIFF keys and drop the EPSG code.
Warning 1: PROJ: proj_create_from_name: C:\OSGeo4W\share\proj\proj.db contains DATABASE.LAYOUT.VERSION.MINOR = 1 whereas a number &amp;gt;= 2 is expected. It comes from another PROJ installation.
Coordinate System is:
PROJCRS["WGS_1984_UTM_Zone_19N",
    BASEGEOGCRS["WGS 84",
        DATUM["World Geodetic System 1984",
            ELLIPSOID["WGS 84",6378137,298.257223563,
                LENGTHUNIT["metre",1,
                    ID["EPSG",9001]]]],
        PRIMEM["Greenwich",0,
            ANGLEUNIT["degree",0.0174532925199433,
                ID["EPSG",9122]]]],
    CONVERSION["Transverse Mercator",
        METHOD["Transverse Mercator",
            ID["EPSG",9807]],
        PARAMETER["Latitude of natural origin",0,
            ANGLEUNIT["degree",0.0174532925199433],
            ID["EPSG",8801]],
        PARAMETER["Longitude of natural origin",-69,
            ANGLEUNIT["degree",0.0174532925199433],
            ID["EPSG",8802]],
        PARAMETER["Scale factor at natural origin",0.9996,
            SCALEUNIT["unity",1],
            ID["EPSG",8805]],
        PARAMETER["False easting",500000,
            LENGTHUNIT["metre",1],
            ID["EPSG",8806]],
        PARAMETER["False northing",0,
            LENGTHUNIT["metre",1],
            ID["EPSG",8807]]],
    CS[Cartesian,2],
        AXIS["easting",east,
            ORDER[1],
            LENGTHUNIT["metre",1,
                ID["EPSG",9001]]],
        AXIS["northing",north,
            ORDER[2],
            LENGTHUNIT["metre",1,
                ID["EPSG",9001]]]]
Data axis to CRS axis mapping: 1,2
Origin = (561885.000000000000000,-1322685.000000000000000)
Pixel Size = (30.000000000000000,-30.000000000000000)
Metadata:
  AcquisitionDate=43655.607084074072
  AREA_OR_POINT=Area
  CloudCover=0.000000000000000000
  DatasetTag=MS
  DataType=Generic
  ParentRasterType=Landsat 8
  ParentTemplate=Multispectral
  ProductName=L1TP
  SensorName=Landsat 8
  SunAzimuth=40.144335900000001516
  SunElevation=43.934061520000000201
Image Structure Metadata:
  COMPRESSION=LZW
  INTERLEAVE=PIXEL
  LAYOUT=COG
Corner Coordinates:
Upper Left  (  561885.000,-1322685.000) ( 68d25'53.74"W, 11d57'51.98"S)
Lower Left  (  561885.000,-1556115.000) ( 68d25'36.35"W, 14d 4'30.61"S)
Upper Right (  791715.000,-1322685.000) ( 66d19'17.83"W, 11d57' 8.06"S)
Lower Right (  791715.000,-1556115.000) ( 66d17'55.98"W, 14d 3'38.65"S)
Center      (  676800.000,-1439400.000) ( 67d22'11.01"W, 13d 0'55.27"S)
Band 1 Block=512x512 Type=UInt16, ColorInterp=Gray
  Description = CoastalAerosol
  Min=6131.000 Max=65535.000
  Minimum=6131.000, Maximum=65535.000, Mean=8905.080, StdDev=177.506
  NoData Value=0
  Overviews: 3831x3891, 1916x1946, 958x973, 479x487, 240x244
  Metadata:
    BandName=CoastalAerosol
    RadianceBias=-60.734389999999997656
    RadianceGain=0.012147000000000000
    ReflectanceBias=-0.100000000000000006
    ReflectanceGain=0.000020000000000000
    RepresentationType=ATHEMATIC
    STATISTICS_COVARIANCES=31508.52665301626,41642.15679906171,60672.355627964,100761.9852593969,-195143.4491109666,118476.8275766652,108672.286833731,138.1712517149589
    STATISTICS_MAXIMUM=65535
    STATISTICS_MEAN=8905.0801598933
    STATISTICS_MEDIAN=8693.525490
    STATISTICS_MINIMUM=6131
    STATISTICS_SKIPFACTORX=1
    STATISTICS_SKIPFACTORY=1
    STATISTICS_STDDEV=177.50641299124
    WavelengthMax=450.000000000000000000
    WavelengthMin=430.000000000000000000
Band 2 Block=512x512 Type=UInt16, ColorInterp=Undefined
  Description = Blue
  Min=6812.000 Max=35999.000
  Minimum=6812.000, Maximum=35999.000, Mean=8069.279, StdDev=239.697
  NoData Value=0
  Overviews: 3831x3891, 1916x1946, 958x973, 479x487, 240x244
  Metadata:
    BandName=Blue
    RadianceBias=-62.192759999999999820
    RadianceGain=0.012439000000000000
    ReflectanceBias=-0.100000000000000006
    ReflectanceGain=0.000020000000000000
    RepresentationType=ATHEMATIC
    STATISTICS_COVARIANCES=41642.15679906171,57454.85861445696,86149.47310466296,142884.8829616395,-281256.6995189103,163279.4277654528,149520.4595701488,191.5452585793981
    STATISTICS_MAXIMUM=35999
    STATISTICS_MEAN=8069.2794414995
    STATISTICS_MEDIAN=7956.588235
    STATISTICS_MINIMUM=6812
    STATISTICS_SKIPFACTORX=1
    STATISTICS_SKIPFACTORY=1
    STATISTICS_STDDEV=239.69743138894
    WavelengthMax=510.000000000000000000
    WavelengthMin=450.000000000000000000
Band 3 Block=512x512 Type=UInt16, ColorInterp=Undefined
  Description = Green
  Min=6427.000 Max=20046.000
  Minimum=6427.000, Maximum=20046.000, Mean=7461.374, StdDev=383.060
  NoData Value=0
  Overviews: 3831x3891, 1916x1946, 958x973, 479x487, 240x244
  Metadata:
    BandName=Green
    RadianceBias=-57.310090000000002419
    RadianceGain=0.011462000000000000
    ReflectanceBias=-0.100000000000000006
    ReflectanceGain=0.000020000000000000
    RepresentationType=ATHEMATIC
    STATISTICS_COVARIANCES=60672.355627964,86149.47310466296,146735.1970440772,224919.4698553707,-339954.589094391,210672.3368468368,189659.0996540143,237.5565712845495
    STATISTICS_MAXIMUM=20046
    STATISTICS_MEAN=7461.3737144374
    STATISTICS_MEDIAN=7334.933333
    STATISTICS_MINIMUM=6427
    STATISTICS_SKIPFACTORX=1
    STATISTICS_SKIPFACTORY=1
    STATISTICS_STDDEV=383.06030470942
    WavelengthMax=590.000000000000000000
    WavelengthMin=530.000000000000000000
Band 4 Block=512x512 Type=UInt16, ColorInterp=Undefined
  Description = Red
  Min=5566.000 Max=20382.000
  Minimum=5566.000, Maximum=20382.000, Mean=6772.979, StdDev=623.572
  NoData Value=0
  Overviews: 3831x3891, 1916x1946, 958x973, 479x487, 240x244
  Metadata:
    BandName=Red
    RadianceBias=-48.327100000000001501
    RadianceGain=0.009665399999999999
    ReflectanceBias=-0.100000000000000006
    ReflectanceGain=0.000020000000000000
    RepresentationType=ATHEMATIC
    STATISTICS_COVARIANCES=100761.9852593969,142884.8829616395,224919.4698553707,388841.5805853336,-789521.2702374764,414701.3373873618,380051.9154543081,522.6371678856232
    STATISTICS_MAXIMUM=20382
    STATISTICS_MEAN=6772.9790924259
    STATISTICS_MEDIAN=6437.529412
    STATISTICS_MINIMUM=5566
    STATISTICS_SKIPFACTORX=1
    STATISTICS_SKIPFACTORY=1
    STATISTICS_STDDEV=623.57163228079
    WavelengthMax=670.000000000000000000
    WavelengthMin=640.000000000000000000
Band 5 Block=512x512 Type=UInt16, ColorInterp=Undefined
  Description = NearInfrared
  Min=4608.000 Max=32502.000
  Minimum=4608.000, Maximum=32502.000, Mean=13995.801, StdDev=2071.420
  NoData Value=0
  Overviews: 3831x3891, 1916x1946, 958x973, 479x487, 240x244
  Metadata:
    BandName=NearInfrared
    RadianceBias=-29.573779999999999291
    RadianceGain=0.005914800000000000
    ReflectanceBias=-0.100000000000000006
    ReflectanceGain=0.000020000000000000
    RepresentationType=ATHEMATIC
    STATISTICS_COVARIANCES=-195143.4491109666,-281256.6995189103,-339954.589094391,-789521.2702374764,4290781.202010791,-253487.4614312998,-716183.7034941466,-1185.24140439538
    STATISTICS_MAXIMUM=32502
    STATISTICS_MEAN=13995.80144226
    STATISTICS_MEDIAN=14343.552941
    STATISTICS_MINIMUM=4608
    STATISTICS_SKIPFACTORX=1
    STATISTICS_SKIPFACTORY=1
    STATISTICS_STDDEV=2071.4200930788
    WavelengthMax=880.000000000000000000
    WavelengthMin=850.000000000000000000
Band 6 Block=512x512 Type=UInt16, ColorInterp=Undefined
  Description = ShortWaveInfrared_1
  Min=4649.000 Max=65535.000
  Minimum=4649.000, Maximum=65535.000, Mean=10096.295, StdDev=1538.379
  NoData Value=0
  Overviews: 3831x3891, 1916x1946, 958x973, 479x487, 240x244
  Metadata:
    BandName=ShortWaveInfrared_1
    RadianceBias=-7.354729999999999990
    RadianceGain=0.001470900000000000
    ReflectanceBias=-0.100000000000000006
    ReflectanceGain=0.000020000000000000
    RepresentationType=ATHEMATIC
    STATISTICS_COVARIANCES=118476.8275766652,163279.4277654528,210672.3368468368,414701.3373873618,-253487.4614312998,2366608.875233505,1474145.926775633,2391.277470791071
    STATISTICS_MAXIMUM=65535
    STATISTICS_MEAN=10096.294938413
    STATISTICS_MEDIAN=9424.372549
    STATISTICS_MINIMUM=4649
    STATISTICS_SKIPFACTORX=1
    STATISTICS_SKIPFACTORY=1
    STATISTICS_STDDEV=1538.3786514488
    WavelengthMax=1650.000000000000000000
    WavelengthMin=1570.000000000000000000
Band 7 Block=512x512 Type=UInt16, ColorInterp=Undefined
  Description = ShortWaveInfrared_2
  Min=4257.000 Max=65535.000
  Minimum=4257.000, Maximum=65535.000, Mean=7163.728, StdDev=1030.534
  NoData Value=0
  Overviews: 3831x3891, 1916x1946, 958x973, 479x487, 240x244
  Metadata:
    BandName=ShortWaveInfrared_2
    RadianceBias=-2.478940000000000143
    RadianceGain=0.000495790000000000
    ReflectanceBias=-0.100000000000000006
    ReflectanceGain=0.000020000000000000
    RepresentationType=ATHEMATIC
    STATISTICS_COVARIANCES=108672.286833731,149520.4595701488,189659.0996540143,380051.9154543081,-716183.7034941466,1474145.926775633,1062000.165344211,1592.500852970767
    STATISTICS_MAXIMUM=65535
    STATISTICS_MEAN=7163.7281692793
    STATISTICS_MEDIAN=6660.058824
    STATISTICS_MINIMUM=4257
    STATISTICS_SKIPFACTORX=1
    STATISTICS_SKIPFACTORY=1
    STATISTICS_STDDEV=1030.5339224617
    WavelengthMax=2290.000000000000000000
    WavelengthMin=2110.000000000000000000
Band 8 Block=512x512 Type=UInt16, ColorInterp=Undefined
  Description = Cirrus
  Min=4372.000 Max=13262.000
  Minimum=4372.000, Maximum=13262.000, Mean=5033.905, StdDev=10.463
  NoData Value=0
  Overviews: 3831x3891, 1916x1946, 958x973, 479x487, 240x244
  Metadata:
    BandName=Cirrus
    RadianceBias=-11.558099999999999596
    RadianceGain=0.002311600000000000
    ReflectanceBias=-0.100000000000000006
    ReflectanceGain=0.000020000000000000
    RepresentationType=ATHEMATIC
    STATISTICS_COVARIANCES=138.1712517149589,191.5452585793981,237.5565712845495,522.6371678856232,-1185.24140439538,2391.277470791071,1592.500852970767,109.4827697063441
    STATISTICS_MAXIMUM=13262
    STATISTICS_MEAN=5033.9045103191
    STATISTICS_MEDIAN=4999.529412
    STATISTICS_MINIMUM=4372
    STATISTICS_SKIPFACTORX=1
    STATISTICS_SKIPFACTORY=1
    STATISTICS_STDDEV=10.463401440561
    WavelengthMax=1380.000000000000000000
    WavelengthMin=1360.000000000000000000&lt;/LI-CODE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&lt;BR /&gt;Maybe the issue is that my file has:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Coordinate System is:
GEOGCRS["WGS 84"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and the file from the example has:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Coordinate System is:
PROJCRS["WGS_1984_UTM_Zone_19N"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;How do I display the provided *.jp2 file on the map?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 09:33:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-jp2-using-arcgis-maps-sdk-for/m-p/1261341#M80368</guid>
      <dc:creator>KHTRE</dc:creator>
      <dc:date>2023-02-24T09:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to display *.jp2 using ArcGIS Maps SDK for JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-jp2-using-arcgis-maps-sdk-for/m-p/1262013#M80391</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested the jp2 image you provided and is working without any issues using goal_translate you provided. Please set the `TILED=YES` option when generating the COG.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;gdal_translate MSAVIC_2022-12-17.jp2 msavic_cog.tif -co "TILED=YES"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;In any case, I was&amp;nbsp;able to add and view the cog you created without any issues.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 15:45:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-jp2-using-arcgis-maps-sdk-for/m-p/1262013#M80391</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-02-27T15:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to display *.jp2 using ArcGIS Maps SDK for JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-jp2-using-arcgis-maps-sdk-for/m-p/1262332#M80405</link>
      <description>&lt;P&gt;That is weird, because I still can't see it on the map.&lt;BR /&gt;In order to test my code I have downloaded &lt;A href="https://ss6imagery.arcgisonline.com/imagery_sample/landsat8/Bolivia_LC08_L1TP_001069_20190719_MS.tiff" target="_self"&gt;the TIFF file&lt;/A&gt; from &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-imagerytilelayer-cog/" target="_self"&gt;this example.&lt;/A&gt;&lt;BR /&gt;When I load the map I can see a new layer in Bolivia&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63845iBDFB4F10680BDA46/image-size/small?v=v2&amp;amp;px=200" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;But when I use the file created by the gdal, it just won't appear on the map where it should.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63846iD64F417AC323A02B/image-size/small?v=v2&amp;amp;px=200" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63847i28ECF9A62C3D8286/image-size/small?v=v2&amp;amp;px=200" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;When you load the layer, can you see it next to the cross of Kansas, Nebraska and Colorado?&lt;BR /&gt;&lt;BR /&gt;Also, the map gets focused in some random spot when I use the converted file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        view.whenLayerView(layer).then(() =&amp;gt; {
          view.goTo(layer.fullExtent);
        });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This code works as expected for Bolivia, but for my file the map gets focused in the ocean next to Africa and even there I can't see the layer.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63854i139F2FB2CF00B0C1/image-size/small?v=v2&amp;amp;px=200" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63855iA546619F2043C142/image-size/small?v=v2&amp;amp;px=200" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63856iF768D829D494AA33/image-size/small?v=v2&amp;amp;px=200" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 07:17:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-jp2-using-arcgis-maps-sdk-for/m-p/1262332#M80405</guid>
      <dc:creator>KHTRE</dc:creator>
      <dc:date>2023-02-28T07:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to display *.jp2 using ArcGIS Maps SDK for JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-jp2-using-arcgis-maps-sdk-for/m-p/1262592#M80419</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I see. Are you hosting the image on a different server than your app? If so you need to make sure that the server is CORS enabled. If it is on the same server then you need to make sure that the file can be accessed via HTTPS.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I hosted the COG with your goal_translate options on my GitHub and here is a codepen that shows the image in the right place:&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/wvEgmjN?editors=1000" target="_blank"&gt;https://codepen.io/U_B_U/pen/wvEgmjN?editors=1000&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jp2-cog.gif" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63914iBD519A8EC5F63087/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jp2-cog.gif" alt="jp2-cog.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 17:29:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-jp2-using-arcgis-maps-sdk-for/m-p/1262592#M80419</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-02-28T17:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to display *.jp2 using ArcGIS Maps SDK for JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-jp2-using-arcgis-maps-sdk-for/m-p/1262913#M80427</link>
      <description>&lt;P&gt;Okay...&lt;BR /&gt;The URL to your hosted result.tif worked for me just fine.&lt;BR /&gt;So, most likely the problem is in the conversion process.&lt;BR /&gt;Maybe my GDAL version is wrong...&lt;BR /&gt;Interesting thing that Windows shows your file as totally black rectangle while my file is a normal image&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KHTRE_0-1677655473529.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/63992i102A782CEFECFEC1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KHTRE_0-1677655473529.png" alt="KHTRE_0-1677655473529.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;What version are you using?&lt;/P&gt;&lt;P&gt;UPD: Yes, it was the issue. I have installed&amp;nbsp;GDAL 3.6.2 and in worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;gdal_translate -ot UInt16 -of COG MSAVIC_2022-12-17.jp2 msavic_cog14.tif&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works for me now.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64003i86BE3B178F88A9DD/image-size/small?v=v2&amp;amp;px=200" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you))&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 09:34:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-jp2-using-arcgis-maps-sdk-for/m-p/1262913#M80427</guid>
      <dc:creator>KHTRE</dc:creator>
      <dc:date>2023-03-01T09:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to display *.jp2 using ArcGIS Maps SDK for JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-jp2-using-arcgis-maps-sdk-for/m-p/1262946#M80431</link>
      <description>&lt;P&gt;So, the issue was the GDAL.&lt;BR /&gt;I have reinstalled it and the converted files started to work.&lt;BR /&gt;My current GDAL version is 3.6.2&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 09:45:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-display-jp2-using-arcgis-maps-sdk-for/m-p/1262946#M80431</guid>
      <dc:creator>KHTRE</dc:creator>
      <dc:date>2023-03-01T09:45:17Z</dc:date>
    </item>
  </channel>
</rss>

