Skip to content

Commit

Permalink
Add GeoServerRESTImporter
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlkoch committed Nov 16, 2017
1 parent b65edfa commit c14e80c
Show file tree
Hide file tree
Showing 28 changed files with 2,380 additions and 0 deletions.

Large diffs are not rendered by default.

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);
}

}
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() {

}

}
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;
}

}
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;
}
}
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();
}

}
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;
}

}

0 comments on commit c14e80c

Please sign in to comment.