001 // $HeadURL: svn+ssh://jwilden@svn.wald.intevation.org/deegree/base/branches/2.5_testing/src/org/deegree/ogcwebservices/wcs/configuration/GridDirectory.java $ 002 /*---------------------------------------------------------------------------- 003 This file is part of deegree, http://deegree.org/ 004 Copyright (C) 2001-2009 by: 005 Department of Geography, University of Bonn 006 and 007 lat/lon GmbH 008 009 This library is free software; you can redistribute it and/or modify it under 010 the terms of the GNU Lesser General Public License as published by the Free 011 Software Foundation; either version 2.1 of the License, or (at your option) 012 any later version. 013 This library is distributed in the hope that it will be useful, but WITHOUT 014 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 015 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 016 details. 017 You should have received a copy of the GNU Lesser General Public License 018 along with this library; if not, write to the Free Software Foundation, Inc., 019 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 020 021 Contact information: 022 023 lat/lon GmbH 024 Aennchenstr. 19, 53177 Bonn 025 Germany 026 http://lat-lon.de/ 027 028 Department of Geography, University of Bonn 029 Prof. Dr. Klaus Greve 030 Postfach 1147, 53001 Bonn 031 Germany 032 http://www.geographie.uni-bonn.de/deegree/ 033 034 e-mail: info@deegree.org 035 ----------------------------------------------------------------------------*/ 036 package org.deegree.ogcwebservices.wcs.configuration; 037 038 import org.deegree.model.crs.CoordinateSystem; 039 import org.deegree.model.spatialschema.Envelope; 040 041 /** 042 * An instance of <tt>GridDirectory</tt> describes a directory in the file system containing grid 043 * coverages within the envelope assigned to the <tt>Directory</tt>. The name of the 044 * <tt>Directory</tt> may is build from variable indicated by a leadin '$' (e.g. 045 * C:/rasterdata/luftbilder/775165/$YEAR/$MONTH/$DAY/$ELEVATION/l0.5) in this case the variable 046 * parts of the name can be replaced by an application with concrete values. It is in the 047 * responsibility of the application to use valid values for the variables. Known variable names 048 * are: 049 * <ul> 050 * <li>$YEAR 051 * <li>$MONTH 052 * <li>$DAY 053 * <li>$HOUR 054 * <li>$MINUTE 055 * <li>$ELEVATION 056 * </ul> 057 * 058 * @version $Revision: 18195 $ 059 * @author <a href="mailto:poth@lat-lon.de">Andreas Poth</a> 060 * @author last edited by: $Author: mschneider $ 061 * 062 * @version 1.0. $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $ 063 * 064 * @since 2.0 065 */ 066 public class GridDirectory extends Directory { 067 068 private double tileWidth = 0; 069 070 private double tileHeight = 0; 071 072 /** 073 * file extentions will be empty. this will cause that all files in the directory will be 074 * recognized 075 * 076 * @param name 077 * name of the directory 078 * @param envelope 079 * enclosing envelope of the tiles in the directory 080 * @param crs 081 * CRS of the data 082 * @param tileWidth 083 * width (pixels) of the files in the directory 084 * @param tileHeight 085 * height (pixels) of the files in the directory 086 */ 087 public GridDirectory( String name, Envelope envelope, CoordinateSystem crs, double tileWidth, double tileHeight ) { 088 super( name, envelope, crs ); 089 this.tileWidth = tileWidth; 090 this.tileHeight = tileHeight; 091 } 092 093 /** 094 * @param name 095 * name of the directory 096 * @param envelope 097 * enclosing envelope of the tiles in the directory 098 * @param crs 099 * CRS of the data 100 * @param fileExtensions 101 * list of reconized file extensions 102 * @param tileWidth 103 * width (pixels) of the files in the directory 104 * @param tileHeight 105 * height (pixels) of the files in the directory 106 */ 107 public GridDirectory( String name, Envelope envelope, CoordinateSystem crs, String[] fileExtensions, 108 double tileWidth, double tileHeight ) { 109 super( name, envelope, crs, fileExtensions ); 110 this.tileWidth = tileWidth; 111 this.tileHeight = tileHeight; 112 } 113 114 /** 115 * @return Returns the tileHeight. 116 * 117 */ 118 public double getTileHeight() { 119 return tileHeight; 120 } 121 122 /** 123 * @param tileHeight 124 * The tileHeight to set. 125 * 126 */ 127 public void setTileHeight( double tileHeight ) { 128 this.tileHeight = tileHeight; 129 } 130 131 /** 132 * @return Returns the tileWidth. 133 * 134 */ 135 public double getTileWidth() { 136 return tileWidth; 137 } 138 139 /** 140 * @param tileWidth 141 * The tileWidth to set. 142 * 143 */ 144 public void setTileWidth( double tileWidth ) { 145 this.tileWidth = tileWidth; 146 } 147 148 }