This commit is contained in:
Fabio Sinibaldi 2013-10-29 17:39:08 +00:00
parent 7ca9e677c4
commit 325f8973a5
3 changed files with 23 additions and 0 deletions

16
pom.xml
View File

@ -34,6 +34,12 @@
<groupId>it.geosolutions</groupId>
<artifactId>geoserver-manager</artifactId>
<version>1.5.1</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.gcube.resources.discovery</groupId>
@ -61,6 +67,16 @@
<groupId>org.geotoolkit.pending</groupId>
<artifactId>geotk-xml-sld</artifactId>
<version>3.20</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<repositories>

View File

@ -157,6 +157,7 @@ public class GISInterface {
PublishResponse toReturn=new PublishResponse(geoNetworkMeta);
GeoServerRESTPublisher publisher=null;
GeoServerDescriptor desc=getGeoServerSet(false).last();
logger.debug("Publish db table : "+storeName+" under ws : "+workspace);
logger.debug("Using "+desc);
try{
publisher=getGeoServerManager(desc.getUrl(), desc.getUser(), desc.getPassword()).getPublisher();

View File

@ -50,6 +50,9 @@ public class PublishTest {
// GNInsertConfiguration config=new GNInsertConfiguration("view-group", "datasets", "_none_", true);
// gisInterface.addGeoTIFF(workspace, storeName, coverageName, geoTiff, srs, policy, defaultStyle, bbox, theMeta, config,LoginLevel.DEFAULT);
//*************** publish Style
String nameStyle="TestStyle"+System.currentTimeMillis();
String attributeName="probability";
Integer maxClasses=5;
@ -63,6 +66,9 @@ public class PublishTest {
System.out.println(sldStyle);
// System.out.println(gisInterface.publishStyle(, nameStyle));
//**************
}