Skip to content

demo #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

demo #10

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/main/java/org/lakedetection/FindSets.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,24 @@ public String search() {
// Initialisierung eines Strings, welches die uuid enthalten wird
String imageNumber = "Variable 'imageNumber' has not been initialized";
if (request.ok()) { // Ueberpruefung, ob die Anfrage erfolgreich war
/*
try {
// Eine leere Datei wird auf dem Computer lokal erstellt
file = File.createTempFile("sets", ".json", new File(".//"));
// Ausgabe des Dateipfades auf der Konsole
System.out.println("File path: "+ file.getAbsolutePath());
System.out.println("File path: "+ file.getAbsolutePath());
System.out.println("Downloading");
} catch(IOException exception) {
System.out.println(exception);
}
// Fuellen der leeren Datei
request.receive(file);
*/

// --------------- ZUM TESTEN OHNE DOWNLOAD --------------------------------------
file = new File("/Users/josefinabalzer/Desktop/softwarepraktikum2020/sets8749057408278342050.json");
System.out.println("File path: /Users/josefinabalzer/Desktop/softwarepraktikum2020/sets8749057408278342050.json");
// -------------------------------------------------------------------------------
// Fuellen der leeren Datei
//request.receive(file);

int number = 0;
// Initialisierung eines String-Arrays, in dem spaeter die uuids gespeichter werden,
Expand Down
12 changes: 8 additions & 4 deletions src/main/java/org/lakedetection/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,21 @@ public static void main(String[] args) throws IOException { //main Methode

// Initialisieren der Objekts "findsets", indem die Informationen zur gefundenen Datei
// gespeichert werden, um die File zu initialisieren und herunterzuladen.
//FindSets findsets = new FindSets();
FindSets findsets = new FindSets();
//File file = findsets.downloadZip(findsets.search());
//System.out.println("search done"); // Kommentar auf der Konsole zur Überprüfung des Fortschritts
findsets.search();
// --------------- ZUM TESTEN OHNE DOWNLOAD --------------------------------------
File file = new File("/Users/josefinabalzer/Desktop/softwarepraktikum2020/S1B_IW_GRDH_1SDV_20201015T052435_20201015T052500_023819_02D439_34BD.zip");
// -------------------------------------------------------------------------------
System.out.println("search done"); // Kommentar auf der Konsole zur Überprüfung des Fortschritts

// Laden des Datensatzes als Objekt vom Typ Loadzip und dem Namen dataset
//Loadzip dataset = new Loadzip(file.getAbsolutePath());
Loadzip dataset = new Loadzip(file.getAbsolutePath());

// Pfade zur Test-Datei auf beiden PCs zur Ueberpruefung von Methoden und Funktionen
// ohne diese Datei neu herunterladen zu muessen:
// Pfad Josi:
Loadzip dataset = new Loadzip("/Users/josefinabalzer/Desktop/softwarepraktikum2020/S1B_IW_GRDH_1SDV_20201015T052435_20201015T052500_023819_02D439_34BD.zip");
//Loadzip dataset = new Loadzip("/Users/josefinabalzer/Desktop/softwarepraktikum2020/S1B_IW_GRDH_1SDV_20201015T052435_20201015T052500_023819_02D439_34BD.zip");
// Pfad Alex:
//Loadzip dataset = new Loadzip("E:\\Raster\\S1A_IW_GRDH_1SDV_20200307T052505_20200307T052530_031565_03A2FE_508A.zip");

Expand Down