Revision 2613 org.gvsig.raster.wmts/trunk/org.gvsig.raster.wmts/org.gvsig.raster.wmts.io/src/main/java/org/gvsig/raster/wmts/io/WMTSDataParametersImpl.java

View differences:

WMTSDataParametersImpl.java
118 118
		.setDescription("Bounding box")
119 119
		.setMandatory(false);
120 120
		
121
		definition.addDynFieldString(FIELD_DIMENSION)
122
		.setDescription("Dimensions")
123
		.setMandatory(false);
124
		
125
		definition.addDynFieldString(FIELD_DIMENSION_VALUE)
126
		.setDescription("Value selected for the current dimension")
127
		.setMandatory(false);
128
		
121 129
		return definition;
122 130
	}
123 131
	
124 132
	/**
133
	 * Gets the selected dimension
134
	 * @return
135
	 */
136
	public String getDimension() {
137
		return (String)getDynValue(FIELD_DIMENSION);
138
	}
139
	
140
	/**
141
	 * Sets the selected dimension
142
	 * @param dimension
143
	 */
144
	public void setDimension(String dimension) {
145
		setDynValue(FIELD_DIMENSION, dimension);
146
	}
147
	
148
	/**
149
	 * Gets the value for the selected dimension
150
	 * @return
151
	 */
152
	public String getDimensionSelectedValue() {
153
		return (String)getDynValue(FIELD_DIMENSION_VALUE);
154
	}
155
	
156
	/**
157
	 * Sets the value for the selected dimension
158
	 * @param dimension
159
	 */
160
	public void setDimensionSelectedValue(String dimension) {
161
		setDynValue(FIELD_DIMENSION_VALUE, dimension);
162
	}
163
	
164
	/**
125 165
	 * Gets the bounding box
126 166
	 * @return
127 167
	 */
......
207 247
		}
208 248
 			
209 249
		if(srs.contains("EPSG:") && !srs.startsWith("EPSG:")) {
210
			return "EPSG:" + srs.substring(srs.lastIndexOf("EPSG:") + 1);
250
			return "EPSG:" + srs.substring(srs.lastIndexOf(":") + 1);
211 251
		}
212 252
		return srs;
213 253
	}

Also available in: Unified diff