diff --git a/io/plugins/eu.esdihumboldt.hale.io.gml/src/eu/esdihumboldt/hale/io/gml/reader/internal/wfs/WfsBackedGmlInstanceCollection.java b/io/plugins/eu.esdihumboldt.hale.io.gml/src/eu/esdihumboldt/hale/io/gml/reader/internal/wfs/WfsBackedGmlInstanceCollection.java index 2ce21bf3f7..1b6f2ee0ad 100644 --- a/io/plugins/eu.esdihumboldt.hale.io.gml/src/eu/esdihumboldt/hale/io/gml/reader/internal/wfs/WfsBackedGmlInstanceCollection.java +++ b/io/plugins/eu.esdihumboldt.hale.io.gml/src/eu/esdihumboldt/hale/io/gml/reader/internal/wfs/WfsBackedGmlInstanceCollection.java @@ -458,8 +458,10 @@ private void createNextIterator() { try { URL url = nextUri.toURL(); StringBuilder fileName = new StringBuilder(tmpdir); - fileName.append("/").append(url.getPath().replaceAll("/", ".")) - .append(totalFeaturesProcessed).append(".gml"); + + fileName.append("/") + .append(url.getPath().substring(url.getPath().lastIndexOf("/") + 1)) + .append("_").append(totalFeaturesProcessed).append(".gml"); // TODO: may be download files in a thread File downloadFile = new File(fileName.toString());