I have found more details concerning my issue. It turns out the layer is not taking into account the style with NITF, DTED files issued from imageio-ext-gdal plugin.
Here's how I figured it out: I used a basic SLD file to define a style. It was composed of 3 different colors for 3 differents quantities. GridCoverageReader2D reader = new GeoTiffReader/NITFReader/DTEDReader(file); Style rasterStyle =... ( exctraction of the style from the SLD file) Layer rasterLayer = new GridReaderLayer( reader, rasterStyle)); map.add(rasterLayer); JMapFrame.show(map); After checking that it was working with a GeoTiff file, I tried with a DTED and NITF file. Nothing was displayed but the empty frame. Then, I decided to write a mistake on purpose in the SLD file. I put for example "color=######". When I ran the class again, I got an error with the GeoTiff file saying that the color was wrong. However, nothing happened with the NITF or DTED file. I think there's a problem with the constructor new GridReaderLayer( GridCoverageReader2D, Style), when we use format readers associated with the imagio-ext-gdal plugin(NITF, DTED,...), it behaves as if it ignored the style. I hope you will be able to help me. Thank you in advance -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Displaying-NITF-file-with-mapcontent-layers-tp5202179p5202550.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users