-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GEOS-6977] Fixed WCS 1.0.0 KVP ignoring the elevation parameter.
- Loading branch information
Showing
5 changed files
with
150 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/wcs1_0/src/main/java/org/geoserver/wcs/kvp/ElevationKvpParser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* (c) 2019 Open Source Geospatial Foundation - all rights reserved | ||
* This code is licensed under the GPL 2.0 license, available at the root | ||
* application directory. | ||
*/ | ||
package org.geoserver.wcs.kvp; | ||
|
||
import org.geoserver.config.GeoServer; | ||
import org.geoserver.ows.kvp.ElevationParser; | ||
import org.geoserver.wcs.WCSInfo; | ||
|
||
/** | ||
* A {@link ElevationKvpParser} picking the max number of values to be parsed from the WCS | ||
* configuration | ||
*/ | ||
public class ElevationKvpParser extends org.geoserver.ows.kvp.ElevationKvpParser { | ||
|
||
private final GeoServer geoServer; | ||
|
||
/** | ||
* Creates the parser specifying the name of the key to latch to. | ||
* | ||
* @param key The key whose associated value to parse. | ||
*/ | ||
public ElevationKvpParser(String key, GeoServer geoServer) { | ||
super(key); | ||
this.geoServer = geoServer; | ||
} | ||
|
||
protected ElevationParser getElevationParser() { | ||
WCSInfo info = geoServer.getService(WCSInfo.class); | ||
int maxRequestedDimensionValues = info.getMaxRequestedDimensionValues(); | ||
return new ElevationParser(maxRequestedDimensionValues); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters