org.gcube.contentmanagement.timeseries.geotools.gisconnectors
Class GISOperations

java.lang.Object
  extended by org.gcube.contentmanagement.timeseries.geotools.gisconnectors.GISOperations

public class GISOperations
extends Object


Nested Class Summary
static class GISOperations.featuresTypes
           
 
Field Summary
static String DEFAULTSTYLE
           
static String TEMPLATEGROUP
           
 
Constructor Summary
GISOperations()
           
 
Method Summary
static String createFulfilGeometriesStatement(String tableName)
           
 boolean createGroupOnGeoServer(GISInformation gisInfo)
          Creates a new group on the geoserver using a previous template
 boolean createLayers(GISInformation gisInfo)
           
static String createLayerTableStatement(String tableName, String featureName, GISOperations.featuresTypes type)
           
 boolean createNewGroupOnGeoServer(GISInformation gisInfo)
          creates a new group on the most unloaded geoserver
 boolean deleteGroup(GISInformation gisInfo, String groupName)
          deletes a group on the geoserver containing it
 boolean deleteLayer(GISInformation gisInfo, String layerName)
          deletes a layer on the right geoserver by asking to geonetwork
 boolean deleteStyle(GISInformation gisInfo, String styleName)
          deletes a style on the selected geoserver
 boolean generateGisMap(GISInformation gisInfo)
          generates a gis map blocking if a style creation failure happens
 boolean generateGisMap(GISInformation gisInfo, boolean ignoreStylesFailure)
          generates a complete GIS MAP on a remote GEO SERVER The user has to fill in the gisInfo object in order to generate the map
 String getCurrentGeoServer()
           
 org.gcube.common.geoserverinterface.GeoCaller getGeoCaller(GISInformation gisInfo)
          builds up a GeoCaller which will call geonetwork for getting a geoserver reference and then will use the geoserver like in the old GeoserverCaller
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULTSTYLE

public static String DEFAULTSTYLE

TEMPLATEGROUP

public static String TEMPLATEGROUP
Constructor Detail

GISOperations

public GISOperations()
Method Detail

getCurrentGeoServer

public String getCurrentGeoServer()

createFulfilGeometriesStatement

public static String createFulfilGeometriesStatement(String tableName)

createLayerTableStatement

public static String createLayerTableStatement(String tableName,
                                               String featureName,
                                               GISOperations.featuresTypes type)

getGeoCaller

public org.gcube.common.geoserverinterface.GeoCaller getGeoCaller(GISInformation gisInfo)
builds up a GeoCaller which will call geonetwork for getting a geoserver reference and then will use the geoserver like in the old GeoserverCaller

Parameters:
gisInfo -
Returns:

deleteStyle

public boolean deleteStyle(GISInformation gisInfo,
                           String styleName)
                    throws Exception
deletes a style on the selected geoserver

Parameters:
gisInfo -
styleName -
Returns:
Throws:
Exception

deleteLayer

public boolean deleteLayer(GISInformation gisInfo,
                           String layerName)
                    throws Exception
deletes a layer on the right geoserver by asking to geonetwork

Parameters:
gisInfo -
layerName -
Returns:
Throws:
Exception

deleteGroup

public boolean deleteGroup(GISInformation gisInfo,
                           String groupName)
                    throws Exception
deletes a group on the geoserver containing it

Parameters:
gisInfo -
groupName -
Returns:
Throws:
Exception

createLayers

public boolean createLayers(GISInformation gisInfo)
                     throws Exception
Throws:
Exception

createNewGroupOnGeoServer

public boolean createNewGroupOnGeoServer(GISInformation gisInfo)
                                  throws Exception
creates a new group on the most unloaded geoserver

Parameters:
gisInfo -
Returns:
Throws:
Exception

createGroupOnGeoServer

public boolean createGroupOnGeoServer(GISInformation gisInfo)
                               throws Exception
Creates a new group on the geoserver using a previous template

Parameters:
gisInfo -
Returns:
Throws:
Exception

generateGisMap

public boolean generateGisMap(GISInformation gisInfo)
generates a gis map blocking if a style creation failure happens

Parameters:
gisInfo -
Returns:

generateGisMap

public boolean generateGisMap(GISInformation gisInfo,
                              boolean ignoreStylesFailure)
generates a complete GIS MAP on a remote GEO SERVER The user has to fill in the gisInfo object in order to generate the map


main

public static void main(String[] args)


Copyright © 2013. All Rights Reserved.