Gianpaolo Coro 2016-05-12 13:18:17 +00:00
parent 55810c7099
commit ba4489888c
5 changed files with 11 additions and 7 deletions

View File

@ -9,7 +9,7 @@
</parent> </parent>
<groupId>org.gcube.dataanalysis</groupId> <groupId>org.gcube.dataanalysis</groupId>
<artifactId>ecological-engine-geospatial-extensions</artifactId> <artifactId>ecological-engine-geospatial-extensions</artifactId>
<version>1.3.8-SNAPSHOT</version> <version>1.3.9-SNAPSHOT</version>
<name>ecological-engine-geospatial-extension library</name> <name>ecological-engine-geospatial-extension library</name>
<description>ecological-engine-geospatial-extension</description> <description>ecological-engine-geospatial-extension</description>
<scm> <scm>

View File

@ -104,6 +104,8 @@ public class RasterDataPublisher extends StandardLocalExternalAlgorithm{
addOutputString("File name created in the e-Infrastructure", fileName); addOutputString("File name created in the e-Infrastructure", fileName);
addOutputString("Map creator", username); addOutputString("Map creator", username);
} }
AnalysisLogger.getLogger().debug("Deleting raster file "+newf.getAbsolutePath());
newf.delete();
status = 100; status = 100;
} }

View File

@ -26,7 +26,7 @@ public class GeothermalDataMetadataInsertDev {
//Temperature map at 3 km depth //Temperature map at 3 km depth
public static void main(String[] args) throws Exception{ public static void main(String[] args) throws Exception{
/*
TemperatureIsolineat3kmdepth(); TemperatureIsolineat3kmdepth();
SurfaceHeatFlowMapofItaly(); SurfaceHeatFlowMapofItaly();
TemperatureIsolineat2kmdepth(); TemperatureIsolineat2kmdepth();
@ -38,7 +38,7 @@ public class GeothermalDataMetadataInsertDev {
Energy(); Energy();
Licenses(); Licenses();
*/
Industry(); Industry();
TrainingCenter(); TrainingCenter();
} }

View File

@ -5,12 +5,12 @@ import org.opengis.metadata.identification.TopicCategory;
public class GeothermalDataMetadataInsertSlovenia { public class GeothermalDataMetadataInsertSlovenia {
//static String geonetworkurl = "http://geonetwork.geothermaldata.d4science.org/geonetwork"; static String geonetworkurl = "http://geonetwork.geothermaldata.d4science.org/geonetwork";
static String geonetworkurl = "http://geoserver-dev2.d4science-ii.research-infrastructures.eu/geonetwork"; // static String geonetworkurl = "http://geoserver-dev2.d4science-ii.research-infrastructures.eu/geonetwork";
static String geoserverurl = "http://geoserver-dev.d4science-ii.research-infrastructures.eu/geoserver"; static String geoserverurl = "http://geoserver-dev.d4science-ii.research-infrastructures.eu/geoserver";
static String user = "admin"; static String user = "admin";
//static String password = "d4science2014"; static String password = "d4science2014";
static String password = "admin"; // static String password = "admin";
public static void main(String[] args) throws Exception{ public static void main(String[] args) throws Exception{
for (int i=0;i<titles.length;i++){ for (int i=0;i<titles.length;i++){

View File

@ -15,6 +15,7 @@ import java.util.HashMap;
import java.util.HashSet; import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Locale; import java.util.Locale;
import java.util.UUID;
import java.util.Map.Entry; import java.util.Map.Entry;
import javax.xml.bind.JAXBException; import javax.xml.bind.JAXBException;
@ -624,6 +625,7 @@ public class GenericLayerMetadata {
// Metadata Obj: // Metadata Obj:
DefaultMetadata meta = new DefaultMetadata(party, sourceGenerationDate, ident); DefaultMetadata meta = new DefaultMetadata(party, sourceGenerationDate, ident);
meta.setFileIdentifier(UUID.randomUUID().toString());
meta.getSpatialRepresentationInfo().add(spatial); meta.getSpatialRepresentationInfo().add(spatial);
meta.setDistributionInfo(distribution); meta.setDistributionInfo(distribution);
meta.getMetadataConstraints().add(constraints); meta.getMetadataConstraints().add(constraints);