private GDALSettings getGdalConfigOptions( final Workspace ws ) { File configFile = new File( ( (DefaultWorkspace) ws ).getLocation(), configFileName ); if ( configFile.exists() ) { LOG.info( "Using '" + configFileName + "' from workspace for GDAL settings." ); try { return readGdalConfigOptions( configFile, ws ); } catch ( Exception e ) { LOG.error( "Error reading GDALSettings file: " + e.getMessage() ); } } return null; }
@Override public void init( Workspace workspace ) { this.workspace = workspace; initDefault(); init( new File( ( (DefaultWorkspace) workspace ).getLocation(), "crs" ) ); }
public WSDL( String wsPath ) { DefaultWorkspace ws = (DefaultWorkspace) OGCFrontController.getServiceWorkspace().getNewWorkspace(); wsdlFile = new File( ws.getLocation(), wsPath ); }
@Override public void startup( Workspace workspace ) { try { if ( workspace instanceof DefaultWorkspace ) { File dir = new File( ( (DefaultWorkspace) workspace ).getLocation(), getMetadata().getWorkspacePath() ); bboxCache = new BBoxPropertiesCache( new File( dir, BBOX_CACHE_FILE ) ); } // else? } catch ( IOException e ) { LOG.error( "Unable to initialize global envelope cache: " + e.getMessage(), e ); } super.startup( workspace ); }
INSTANCE = this; File securityFile = new File( ( (DefaultWorkspace) workspace ).getLocation(), "services" + separator + "security" + separator + "security.xml" ); File authorities = new File( ( (DefaultWorkspace) workspace ).getLocation(), "services" + separator + "security" + separator + "authorities" );
File proxyConfigFile = new File( ( (DefaultWorkspace) workspace ).getLocation(), "proxy.xml" ); if ( proxyConfigFile.exists() ) { LOG.info( "Using 'proxy.xml' from workspace." );
@Override public void init( Workspace workspace ) { File wsDir = ( (DefaultWorkspace) workspace ).getLocation(); File metadata = new File( wsDir, "services" + File.separator + "metadata.xml" ); File main = new File( wsDir, "services" + File.separator + "main.xml" );