-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
2,380 additions
and
0 deletions.
There are no files selected for viewing
554 changes: 554 additions & 0 deletions
554
src/shogun2-core/src/main/java/de/terrestris/shogun2/importer/GeoServerRESTImporter.java
Large diffs are not rendered by default.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
...un2-core/src/main/java/de/terrestris/shogun2/importer/GeoServerRESTImporterException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package de.terrestris.shogun2.importer; | ||
|
||
/** | ||
* | ||
* @author Daniel Koch | ||
* @author terrestris GmbH & Co. KG | ||
* | ||
*/ | ||
public class GeoServerRESTImporterException extends Exception { | ||
|
||
/** | ||
* | ||
*/ | ||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* | ||
*/ | ||
public GeoServerRESTImporterException() {} | ||
|
||
/** | ||
* @param message | ||
*/ | ||
public GeoServerRESTImporterException(String message) { | ||
super(message); | ||
} | ||
|
||
/** | ||
* @param cause | ||
*/ | ||
public GeoServerRESTImporterException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
/** | ||
* @param message | ||
* @param cause | ||
*/ | ||
public GeoServerRESTImporterException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
...2-core/src/main/java/de/terrestris/shogun2/importer/communication/AbstractRESTEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package de.terrestris.shogun2.importer.communication; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
/** | ||
* | ||
* @author Daniel Koch | ||
* @author terrestris GmbH & Co. KG | ||
* | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public abstract class AbstractRESTEntity { | ||
|
||
/** | ||
* Default constructor. | ||
*/ | ||
public AbstractRESTEntity() { | ||
|
||
} | ||
|
||
} |
68 changes: 68 additions & 0 deletions
68
...hogun2-core/src/main/java/de/terrestris/shogun2/importer/communication/RESTAttribute.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
package de.terrestris.shogun2.importer.communication; | ||
|
||
import de.terrestris.shogun2.importer.communication.AbstractRESTEntity; | ||
|
||
/** | ||
* | ||
* @author Daniel Koch | ||
* @author terrestris GmbH & Co. KG | ||
* | ||
*/ | ||
public class RESTAttribute extends AbstractRESTEntity { | ||
|
||
/** | ||
* | ||
*/ | ||
private String name; | ||
|
||
/** | ||
* | ||
*/ | ||
private String binding; | ||
|
||
/** | ||
* Default constructor. | ||
*/ | ||
public RESTAttribute() { | ||
|
||
} | ||
|
||
/** | ||
* | ||
* @param name | ||
* @param binding | ||
*/ | ||
public RESTAttribute(String name, String binding) { | ||
this.name = name; | ||
this.binding = binding; | ||
} | ||
|
||
/** | ||
* @return the name | ||
*/ | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
/** | ||
* @param name the name to set | ||
*/ | ||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
/** | ||
* @return the binding | ||
*/ | ||
public String getBinding() { | ||
return binding; | ||
} | ||
|
||
/** | ||
* @param binding the binding to set | ||
*/ | ||
public void setBinding(String binding) { | ||
this.binding = binding; | ||
} | ||
|
||
} |
131 changes: 131 additions & 0 deletions
131
...gun2-core/src/main/java/de/terrestris/shogun2/importer/communication/RESTBoundingBox.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
package de.terrestris.shogun2.importer.communication; | ||
|
||
import de.terrestris.shogun2.importer.communication.AbstractRESTEntity; | ||
|
||
/** | ||
* | ||
* @author Daniel Koch | ||
* @author terrestris GmbH & Co. KG | ||
* | ||
*/ | ||
public class RESTBoundingBox extends AbstractRESTEntity { | ||
|
||
/** | ||
* | ||
*/ | ||
private String minx; | ||
|
||
/** | ||
* | ||
*/ | ||
private String miny; | ||
|
||
/** | ||
* | ||
*/ | ||
private String maxx; | ||
|
||
/** | ||
* | ||
*/ | ||
private String maxy; | ||
|
||
/** | ||
* | ||
*/ | ||
private String crs; | ||
|
||
/** | ||
* Default constructor. | ||
*/ | ||
public RESTBoundingBox() { | ||
|
||
} | ||
|
||
/** | ||
* | ||
* @param minx | ||
* @param miny | ||
* @param maxx | ||
* @param maxy | ||
* @param crs | ||
*/ | ||
public RESTBoundingBox(String minx, String miny, String maxx, String maxy, | ||
String crs) { | ||
this.minx = minx; | ||
this.miny = miny; | ||
this.maxx = maxx; | ||
this.maxy = maxy; | ||
this.crs = crs; | ||
} | ||
|
||
/** | ||
* @return the minx | ||
*/ | ||
public String getMinx() { | ||
return minx; | ||
} | ||
|
||
/** | ||
* @param minx the minx to set | ||
*/ | ||
public void setMinx(String minx) { | ||
this.minx = minx; | ||
} | ||
|
||
/** | ||
* @return the miny | ||
*/ | ||
public String getMiny() { | ||
return miny; | ||
} | ||
|
||
/** | ||
* @param miny the miny to set | ||
*/ | ||
public void setMiny(String miny) { | ||
this.miny = miny; | ||
} | ||
|
||
/** | ||
* @return the maxx | ||
*/ | ||
public String getMaxx() { | ||
return maxx; | ||
} | ||
|
||
/** | ||
* @param maxx the maxx to set | ||
*/ | ||
public void setMaxx(String maxx) { | ||
this.maxx = maxx; | ||
} | ||
|
||
/** | ||
* @return the maxy | ||
*/ | ||
public String getMaxy() { | ||
return maxy; | ||
} | ||
|
||
/** | ||
* @param maxy the maxy to set | ||
*/ | ||
public void setMaxy(String maxy) { | ||
this.maxy = maxy; | ||
} | ||
|
||
/** | ||
* @return the crs | ||
*/ | ||
public String getCrs() { | ||
return crs; | ||
} | ||
|
||
/** | ||
* @param crs the crs to set | ||
*/ | ||
public void setCrs(String crs) { | ||
this.crs = crs; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...n2-core/src/main/java/de/terrestris/shogun2/importer/communication/RESTCoverageStore.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package de.terrestris.shogun2.importer.communication; | ||
|
||
import de.terrestris.shogun2.importer.communication.RESTDataStore; | ||
|
||
/** | ||
* | ||
* terrestris GmbH & Co. KG | ||
* @author ahenn | ||
* @date 01.04.2016 | ||
* | ||
*/ | ||
public class RESTCoverageStore extends RESTDataStore { | ||
|
||
public RESTCoverageStore() { | ||
super(); | ||
} | ||
|
||
} |
109 changes: 109 additions & 0 deletions
109
src/shogun2-core/src/main/java/de/terrestris/shogun2/importer/communication/RESTData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
package de.terrestris.shogun2.importer.communication; | ||
|
||
import de.terrestris.shogun2.importer.communication.AbstractRESTEntity; | ||
|
||
/** | ||
* A data is the description of the source data of a import (overall) or a | ||
* task. In case the import has a global data definition, this normally refers | ||
* to an aggregate store such as a directory or a database, and the data | ||
* associated to the tasks refers to a single element inside such aggregation, | ||
* such as a single file or table. | ||
* | ||
* A import can have a "data" representing the source of the data to be | ||
* imported. The data can be of different types, in particular: "file", | ||
* "directory", "mosaic", "database" and "remote". During the import | ||
* initialization the importer will scan the contents of said resource, and | ||
* generate import tasks for each data found in it. | ||
* | ||
* @author Daniel Koch | ||
* @author terrestris GmbH & Co. KG | ||
* | ||
*/ | ||
public class RESTData extends AbstractRESTEntity { | ||
|
||
/** | ||
* | ||
*/ | ||
private String type; | ||
|
||
/** | ||
* | ||
*/ | ||
private String format; | ||
|
||
/** | ||
* | ||
*/ | ||
private String file; | ||
|
||
/** | ||
* | ||
*/ | ||
private String location; | ||
|
||
/** | ||
* Default constructor. | ||
*/ | ||
public RESTData() { | ||
|
||
} | ||
|
||
/** | ||
* @return the type | ||
*/ | ||
public String getType() { | ||
return type; | ||
} | ||
|
||
/** | ||
* @param type the type to set | ||
*/ | ||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
/** | ||
* @return the format | ||
*/ | ||
public String getFormat() { | ||
return format; | ||
} | ||
|
||
/** | ||
* @param format the format to set | ||
*/ | ||
public void setFormat(String format) { | ||
this.format = format; | ||
} | ||
|
||
/** | ||
* @return the file | ||
*/ | ||
public String getFile() { | ||
return file; | ||
} | ||
|
||
/** | ||
* @param file the file to set | ||
*/ | ||
public void setFile(String file) { | ||
this.file = file; | ||
} | ||
|
||
/** | ||
* | ||
* @return | ||
*/ | ||
public String getLocation() { | ||
return location; | ||
} | ||
|
||
/** | ||
* | ||
* @param location | ||
*/ | ||
public void setLocation(String location) { | ||
this.location = location; | ||
} | ||
|
||
} |
Oops, something went wrong.