Hi,
I’ve projected a GeoTiFF
SRTM DEM image of the Alps mountains (near Geneva - Switzerland) to the UTM
projection (CH1903 / LV03) and exported it using GrassGIS
, but I’m unable to open it with SNAP (while QGIS
can read it).
Below is the error thrown by SNAP:
java.lang.IllegalArgumentException: intMap: keyRange > Short.MAX_VALUE
at org.esa.snap.core.image.ImageManager.createIndexedImage(ImageManager.java:575)
at org.esa.snap.core.image.ImageManager.createByteIndexedImage(ImageManager.java:469)
at org.esa.snap.core.image.ImageManager.createColored1BandImage(ImageManager.java:292)
at org.esa.snap.core.image.ImageManager.createColoredBandImage(ImageManager.java:278)
at org.esa.snap.core.image.ColoredBandImageMultiLevelSource.createImage(ColoredBandImageMultiLevelSource.java:76)
at com.bc.ceres.glevel.support.AbstractMultiLevelSource.getImage(AbstractMultiLevelSource.java:65)
at com.bc.ceres.glevel.support.ConcurrentMultiLevelRenderer.renderImpl(ConcurrentMultiLevelRenderer.java:102)
at com.bc.ceres.glevel.support.ConcurrentMultiLevelRenderer.renderImage(ConcurrentMultiLevelRenderer.java:92)
at com.bc.ceres.glayer.support.ImageLayer.renderLayer(ImageLayer.java:207)
at com.bc.ceres.glayer.Layer.render(Layer.java:408)
at com.bc.ceres.glayer.Layer.renderChildren(Layer.java:441)
at com.bc.ceres.glayer.Layer.render(Layer.java:409)
at com.bc.ceres.glayer.swing.LayerCanvas.paintComponent(LayerCanvas.java:379)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayer.paint(Unknown Source)
at javax.swing.plaf.LayerUI.paint(Unknown Source)
at org.esa.snap.rcp.windows.ProductSceneViewTopComponent$ProductSceneViewLayerUI.paint(ProductSceneViewTopComponent.java:163)
at javax.swing.plaf.ComponentUI.update(Unknown Source)
at javax.swing.JComponent.paintComponent(Unknown Source)
at javax.swing.JLayer.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at org.netbeans.swing.tabcontrol.TabbedContainer.paint(TabbedContainer.java:994)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at org.netbeans.core.windows.view.ui.MainWindow$1.paint(MainWindow.java:189)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at java.awt.Window.paint(Unknown Source)
at javax.swing.RepaintManager$4.run(Unknown Source)
at javax.swing.RepaintManager$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.access$1200(Unknown Source)
at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
[catch] at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
And here is the output from gdalinfo
:
$ gdalinfo shadow-utm.tif
Warning 1: Cannot find datum.csv or gdal_datum.csv
Warning 1: Cannot find ellipsoid.csv
Driver: GTiff/GeoTIFF
Files: shadow-utm.tif
shadow-utm.tif.aux.xml
Size is 851, 1217
Coordinate System is:
PROJCS["CH1903 / LV03",
GEOGCS["bessel",
DATUM["unknown",
SPHEROID["Bessel_1841",6377397.155,299.1528128,
AUTHORITY["EPSG","0"]],
TOWGS84[674.374,15.056,405.346,0,0,0,0],
AUTHORITY["EPSG","6149"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]],
PROJECTION["Hotine_Oblique_Mercator_Azimuth_Center"],
PARAMETER["latitude_of_center",46.95240555555556],
PARAMETER["longitude_of_center",7.439583333333333],
PARAMETER["azimuth",90],
PARAMETER["rectified_grid_angle",90],
PARAMETER["scale_factor",1],
PARAMETER["false_easting",600000],
PARAMETER["false_northing",200000],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]]]
Origin = (544506.559229000005871,125388.307904999994207)
Pixel Size = (25.491484743830792,-25.502833912325382)
Metadata:
AREA_OR_POINT=Area
TIFFTAG_SOFTWARE=GRASS GIS 7.2.1 with GDAL 2.1.3
Image Structure Metadata:
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( 544506.559, 125388.308)
Lower Left ( 544506.559, 94351.359)
Upper Right ( 566199.813, 125388.308)
Lower Right ( 566199.813, 94351.359)
Center ( 555353.186, 109869.833)
Band 1 Block=851x9 Type=Byte, ColorInterp=Palette
Min=1.000 Max=1.000
Minimum=1.000, Maximum=1.000, Mean=1.000, StdDev=0.000
NoData Value=255
Metadata:
COLOR_TABLE_RULES_COUNT=1
COLOR_TABLE_RULE_RGB_0=1.000000e+000 1.000000e+000 252 231 36 252 231 36
STATISTICS_MAXIMUM=1
STATISTICS_MEAN=1
STATISTICS_MINIMUM=1
STATISTICS_STDDEV=0
Is something wrong with this file?