org.ala.layers.intersect
Class IntersectConfig

java.lang.Object
  extended by org.ala.layers.intersect.IntersectConfig

public class IntersectConfig
extends java.lang.Object

Author:
Adam

Field Summary
static java.lang.String GEONETWORK_URL_PLACEHOLDER
           
static java.lang.String GEOSERVER_URL_PLACEHOLDER
           
 
Constructor Summary
IntersectConfig(FieldDAO fieldDao, LayerDAO layerDao)
           
 
Method Summary
 void addToShapeFileCache(java.lang.String fieldIds)
          Add shape files to the shape file cache.
static java.lang.String getAlaspatialOutputPath()
           
static java.lang.String getAnalysisLayerFilesPath()
           
 java.lang.String[] getAnalysisLayerInfo(java.lang.String id)
          get info on an analysis layer
static java.util.List<java.lang.Double> getAnalysisResolutions()
           
static java.lang.String getApiKeyCheckUrlTemplate()
           
static long getConfigReloadWait()
           
 java.lang.String getFieldIdFromFile(java.lang.String file)
           
 java.util.List<Field> getFieldsByDB()
           
static java.lang.String getGdalPath()
           
static java.lang.String getGeonetworkUrl()
           
static java.lang.String getGeoserverUrl()
           
static int getGridBufferSize()
           
static java.lang.String getGridCachePath()
           
static int getGridCacheReaderCount()
           
 IntersectionFile getIntersectionFile(java.lang.String fieldId)
           
 java.util.Map<java.lang.String,IntersectionFile> getIntersectionFiles()
           
static java.lang.String getLayerFilesPath()
           
static java.lang.String getLayerIndexUrl()
           
static java.lang.String getOccurrenceSpeciesRecordsFilename()
           
 SimpleShapeFileCache getShapeFileCache()
           
static java.lang.String getSpatialPortalAppName()
           
static int getThreadCount()
           
static java.lang.String getUploadedShapesFieldId()
           
 boolean isLocalSampling()
           
 void load()
           
 boolean requiresReload()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GEOSERVER_URL_PLACEHOLDER

public static final java.lang.String GEOSERVER_URL_PLACEHOLDER
See Also:
Constant Field Values

GEONETWORK_URL_PLACEHOLDER

public static final java.lang.String GEONETWORK_URL_PLACEHOLDER
See Also:
Constant Field Values
Constructor Detail

IntersectConfig

public IntersectConfig(FieldDAO fieldDao,
                       LayerDAO layerDao)
Method Detail

load

public void load()

getAlaspatialOutputPath

public static java.lang.String getAlaspatialOutputPath()

getLayerFilesPath

public static java.lang.String getLayerFilesPath()

getLayerIndexUrl

public static java.lang.String getLayerIndexUrl()

getThreadCount

public static int getThreadCount()

getIntersectionFile

public IntersectionFile getIntersectionFile(java.lang.String fieldId)

getFieldIdFromFile

public java.lang.String getFieldIdFromFile(java.lang.String file)

addToShapeFileCache

public void addToShapeFileCache(java.lang.String fieldIds)
Add shape files to the shape file cache.

Parameters:
fieldIds - comma separated fieldIds. Must be cl fields.

getShapeFileCache

public SimpleShapeFileCache getShapeFileCache()

getGridBufferSize

public static int getGridBufferSize()

getGridCachePath

public static java.lang.String getGridCachePath()

getGridCacheReaderCount

public static int getGridCacheReaderCount()

getConfigReloadWait

public static long getConfigReloadWait()

requiresReload

public boolean requiresReload()

isLocalSampling

public boolean isLocalSampling()

getFieldsByDB

public java.util.List<Field> getFieldsByDB()

getGeoserverUrl

public static java.lang.String getGeoserverUrl()

getGeonetworkUrl

public static java.lang.String getGeonetworkUrl()

getAnalysisLayerFilesPath

public static java.lang.String getAnalysisLayerFilesPath()

getGdalPath

public static java.lang.String getGdalPath()

getAnalysisResolutions

public static java.util.List<java.lang.Double> getAnalysisResolutions()

getOccurrenceSpeciesRecordsFilename

public static java.lang.String getOccurrenceSpeciesRecordsFilename()

getUploadedShapesFieldId

public static java.lang.String getUploadedShapesFieldId()

getApiKeyCheckUrlTemplate

public static java.lang.String getApiKeyCheckUrlTemplate()

getSpatialPortalAppName

public static java.lang.String getSpatialPortalAppName()

getIntersectionFiles

public java.util.Map<java.lang.String,IntersectionFile> getIntersectionFiles()

getAnalysisLayerInfo

public java.lang.String[] getAnalysisLayerInfo(java.lang.String id)
get info on an analysis layer

Parameters:
id - layer id as String
Returns:
String [] with [0] = analysis id, [1] = path to grid file, [2] = analysis type


Copyright © 2014. All Rights Reserved.