diff --git a/.classpath b/.classpath
deleted file mode 100644
index fae1a2b..0000000
--- a/.classpath
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 714351a..0000000
--- a/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,5 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
-org.eclipse.jdt.core.compiler.compliance=1.8
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
-org.eclipse.jdt.core.compiler.source=1.8
diff --git a/pom.xml b/pom.xml
index 18560f1..6594681 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,4 +1,5 @@
-
4.0.0
@@ -96,6 +97,36 @@
sis-netcdf
${sis.utils.modules}
+
+ org.apache.sis.storage
+ sis-earth-observation
+ ${sis.utils.modules}
+
+
+ org.apache.sis.storage
+ sis-geotiff
+ ${sis.utils.modules}
+
+
+
+
+
+
+ org.apache.sis.non-free
+ sis-embedded-data
+ ${sis.version}
+ runtime
+
+
+
+
+
+
+ edu.ucar
+ netcdf
+ 4.3.22
+
+
@@ -117,11 +148,19 @@
test
+
+ org.opengis
+ geoapi-conformance
+ 3.0.1
+ test
+
+
+
-
+
org.apache.maven.plugins
maven-assembly-plugin
diff --git a/src/test/java/org/gcube/data/transfer/plugins/sis/TestGetMetadata.java b/src/test/java/org/gcube/data/transfer/plugins/sis/TestGetMetadata.java
index 7f2980e..0adb476 100644
--- a/src/test/java/org/gcube/data/transfer/plugins/sis/TestGetMetadata.java
+++ b/src/test/java/org/gcube/data/transfer/plugins/sis/TestGetMetadata.java
@@ -21,48 +21,71 @@ import org.gcube.data.transfer.plugins.thredds.sis.SisPlugin;
public class TestGetMetadata {
public static void main(String[] args) throws UnsupportedStorageException, DataStoreException, IOException, NoSuchAlgorithmException {
+ String[] toCheckFiles=new String[] {
+ "/Users/FabioISTI/Downloads/Aaptos_aaptos.nc",
+ "/Users/FabioISTI/Downloads/NASA_Precipitations_1950_2100_rcp45.nc",
+ };
- File temp=File.createTempFile("temp", ".temp");
- File original=new File("/home/fabio/Downloads/oscar_vel2011_180.nc");
- File copied=File.createTempFile("copied", ".nc");
- transferStream(new FileInputStream(original),new FileOutputStream(temp));
- System.out.println("copied. Moving..");
+ for(String f:toCheckFiles) {
+ System.out.println("checking "+f);
+ check(false,f);
+ }
+ System.out.println("Done");
+ }
+
+ private static void check(boolean checkCopy,String src) throws UnsupportedStorageException, DataStoreException, IOException, NoSuchAlgorithmException {
+
+ File original=new File(src);
- System.out.println("Checksum original : "+getChecksum(original));
- System.out.println("Checksum temp : "+getChecksum(temp));
+ File dataset=original;
-
-
- Files.move(temp.toPath(), copied.toPath(),StandardCopyOption.ATOMIC_MOVE,StandardCopyOption.REPLACE_EXISTING);
- if(copied.length()