-
-
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.
- Loading branch information
1 parent
040b6b1
commit e492eee
Showing
19 changed files
with
661 additions
and
28 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
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
54 changes: 54 additions & 0 deletions
54
src/community/wfs3/src/main/java/org/geoserver/wfs3/TileDataRequest.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,54 @@ | |||
/* (c) 2018 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.wfs3; | |||
|
|||
import org.apache.commons.lang3.StringUtils; | |||
|
|||
/** Current tiling request scope data, for context propagation */ | |||
public class TileDataRequest { | |||
|
|||
private String tilingScheme; | |||
private Long level; | |||
private Long row; | |||
private Long col; | |||
|
|||
public TileDataRequest() {} | |||
|
|||
public boolean isTileRequest() { | |||
return (StringUtils.isNotBlank(tilingScheme) && level != null && row != null & col != null); | |||
} | |||
|
|||
public String getTilingScheme() { | |||
return tilingScheme; | |||
} | |||
|
|||
public void setTilingScheme(String tilingScheme) { | |||
this.tilingScheme = tilingScheme; | |||
} | |||
|
|||
public Long getLevel() { | |||
return level; | |||
} | |||
|
|||
public void setLevel(Long level) { | |||
this.level = level; | |||
} | |||
|
|||
public Long getRow() { | |||
return row; | |||
} | |||
|
|||
public void setRow(Long row) { | |||
this.row = row; | |||
} | |||
|
|||
public Long getCol() { | |||
return col; | |||
} | |||
|
|||
public void setCol(Long col) { | |||
this.col = col; | |||
} | |||
} |
7 changes: 7 additions & 0 deletions
7
src/community/wfs3/src/main/java/org/geoserver/wfs3/TilingSchemesRequest.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,7 @@ | |||
/* (c) 2018 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.wfs3; | |||
|
|||
public class TilingSchemesRequest extends BaseRequest {} |
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
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
14 changes: 14 additions & 0 deletions
14
src/community/wfs3/src/main/java/org/geoserver/wfs3/kvp/TilingSchemesKVPReader.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
/* (c) 2018 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.wfs3.kvp; | |||
|
|||
import org.geoserver.wfs3.TilingSchemesRequest; | |||
|
|||
public class TilingSchemesKVPReader extends BaseKvpRequestReader { | |||
|
|||
public TilingSchemesKVPReader() { | |||
super(TilingSchemesRequest.class); | |||
} | |||
} |
14 changes: 14 additions & 0 deletions
14
src/community/wfs3/src/main/java/org/geoserver/wfs3/kvp/WFS3TileResolutionKvpParser.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
/* (c) 2018 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.wfs3.kvp; | |||
|
|||
import org.geoserver.ows.kvp.IntegerKvpParser; | |||
|
|||
public class WFS3TileResolutionKvpParser extends IntegerKvpParser { | |||
|
|||
public WFS3TileResolutionKvpParser() { | |||
super("resolution"); | |||
} | |||
} |
Oops, something went wrong.