Testing tif
This commit is contained in:
parent
8b92208774
commit
32ab7c7cfc
|
@ -90,7 +90,7 @@ public class DummyProjectTest extends AbstractProfiledDocumentsTests{
|
||||||
String fieldName="fileset";
|
String fieldName="fileset";
|
||||||
String fieldDefinition="section."+Field.CHILDREN+"[?(@.fileset)]";
|
String fieldDefinition="section."+Field.CHILDREN+"[?(@.fileset)]";
|
||||||
|
|
||||||
String filename = "relazione.pdf";
|
String filename = "sample.tif";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
5
pom.xml
5
pom.xml
|
@ -32,8 +32,8 @@
|
||||||
<gcube-bom-version>2.1.0-SNAPSHOT</gcube-bom-version>
|
<gcube-bom-version>2.1.0-SNAPSHOT</gcube-bom-version>
|
||||||
<gcube-smartgears-bom-version>2.2.0-SNAPSHOT</gcube-smartgears-bom-version>
|
<gcube-smartgears-bom-version>2.2.0-SNAPSHOT</gcube-smartgears-bom-version>
|
||||||
<gcube-portal-bom-version>3.7.0-SNAPSHOT</gcube-portal-bom-version>
|
<gcube-portal-bom-version>3.7.0-SNAPSHOT</gcube-portal-bom-version>
|
||||||
<!-- <storagehub-version-range>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</storagehub-version-range>-->
|
<storagehub-version-range>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</storagehub-version-range>
|
||||||
<storagehub-version-range>[1.0.0,2.0.0-SNAPSHOT)</storagehub-version-range>
|
<!-- <storagehub-version-range>[1.0.0,2.0.0-SNAPSHOT)</storagehub-version-range>-->
|
||||||
<plugin-framework-version>1.0.1-SNAPSHOT</plugin-framework-version>
|
<plugin-framework-version>1.0.1-SNAPSHOT</plugin-framework-version>
|
||||||
|
|
||||||
|
|
||||||
|
@ -224,7 +224,6 @@
|
||||||
<groupId>org.gcube.common</groupId>
|
<groupId>org.gcube.common</groupId>
|
||||||
<artifactId>storagehub-client-library</artifactId>
|
<artifactId>storagehub-client-library</artifactId>
|
||||||
<version>${storagehub-version-range}</version>
|
<version>${storagehub-version-range}</version>
|
||||||
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -133,7 +133,9 @@ public class SDIManagerWrapper extends SDIManager{
|
||||||
|
|
||||||
log.debug("Publishing remote folder " + absolutePath);
|
log.debug("Publishing remote folder " + absolutePath);
|
||||||
|
|
||||||
URL directoryPath = new URL("file:" + absolutePath + "/" + toSetLayerName + ".shp");
|
|
||||||
|
//
|
||||||
|
URL directoryPath = new URL("file:" + absolutePath + "/" + toSetLayerName + ".tif");
|
||||||
|
|
||||||
//TODO Evaluate SRS
|
//TODO Evaluate SRS
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ public class SDIMaterializerPlugin extends AbstractPlugin implements Materializa
|
||||||
log.info("Materializer {} : Performing {} ",this.getDescriptor().getId(),request);
|
log.info("Materializer {} : Performing {} ",this.getDescriptor().getId(),request);
|
||||||
Project project =request.getDocument();
|
Project project =request.getDocument();
|
||||||
UseCaseDescriptor useCaseDescriptor = request.getUseCaseDescriptor();
|
UseCaseDescriptor useCaseDescriptor = request.getUseCaseDescriptor();
|
||||||
Document requestArguments=request.getCallParameters();
|
Document requestArguments=Serialization.convert(request.getCallParameters(),Document.class);
|
||||||
|
|
||||||
MaterializationReport report= new MaterializationReport(request);
|
MaterializationReport report= new MaterializationReport(request);
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,9 @@ public class MaterializerTests extends BasicPluginTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private MaterializationReport materialize(Project project) throws PluginExecutionException, JsonProcessingException {
|
private MaterializationReport materialize(Project project) throws PluginExecutionException, JsonProcessingException {
|
||||||
MaterializationRequest req=new MaterializationRequest(
|
MaterializationRequest req=new MaterializationRequest(
|
||||||
TestProfiles.profiles.get(project.getProfileID()),getCurrentUser(),getTestContext(),project);
|
TestProfiles.profiles.get(project.getProfileID()),getCurrentUser(),getTestContext(),project);
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue