git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/spatial-data/gis-interface@84606 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7ca9e677c4
commit
325f8973a5
16
pom.xml
16
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
||||
//**************
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue