Skip to content

Commit

Permalink
Update AddRasterImageLayerWizard.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ma15569 authored Aug 19, 2024
1 parent 52fcce0 commit 45fe356
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ private void addImage(WorkbenchContext context, Envelope envelope,
// The style must be stored as SLD file with the same name of the layer.
if (rLayer.getNumBands() == 1) {// Currently OpenJUMP can read/write symbology only for
// monoband raster files
String sldS = new File(imageFileName).getAbsolutePath().replace("tif", "sld");
String sldS = org.openjump.util.UriUtil.removeExtension(imageFileName) + ".sld";
File sldFile = new File(sldS);
if (sldFile.exists() && !sldFile.isDirectory()) {
try {
Expand Down

0 comments on commit 45fe356

Please sign in to comment.