-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pass params to processor, meshingMethod grid size now configurable
- Loading branch information
Showing
10 changed files
with
88 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
from abc import ABC, abstractmethod | ||
|
||
class CogProcessor(ABC): | ||
|
||
class CogProcessor(ABC): | ||
"""Abstract base class for CogProcessors.""" | ||
|
||
@abstractmethod | ||
def process(self, cog_request): | ||
pass |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
import { Pane } from "https://cdn.jsdelivr.net/npm/[email protected]/dist/tweakpane.min.js"; | ||
</script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/cesium/1.106.0/Cesium.js"></script> | ||
<script src="./static/utils.js"></script> | ||
<script src="./static/index.js"></script> | ||
<script src="./static/controls.js"></script> | ||
<script src="./static/slopeshade.js"></script> | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var module, pane, terrainFolder, layerFolder, materialFolder, urlParams; | ||
var module, pane, terrainFolder, layerFolder, materialFolder; | ||
|
||
var minZoomValue = 1; | ||
var maxZoomValue = 21; | ||
|
@@ -13,7 +13,6 @@ document.addEventListener("DOMContentLoaded", async () => { | |
module = await import( | ||
"https://cdn.jsdelivr.net/npm/[email protected]/dist/tweakpane.min.js" | ||
); | ||
urlParams = new URLSearchParams(window.location.search); | ||
setupTweakpane(); | ||
loadCesium(); | ||
} catch (error) { | ||
|
@@ -223,13 +222,13 @@ function updateTerrainProvider() { | |
} | ||
|
||
function getStringParameterValue(param, defaultValue) { | ||
return urlParams.get(param) || defaultValue; | ||
return getUrlParamIgnoreCase(param) || defaultValue; | ||
} | ||
|
||
function getIntParameterValue(param, defaultValue) { | ||
return urlParams.get(param) ? parseInt(urlParams.get(param)) : defaultValue; | ||
return getUrlParamIgnoreCase(param) ? parseInt(getUrlParamIgnoreCase(param)) : defaultValue; | ||
} | ||
|
||
function getBoolParameterValue(param, defaultValue) { | ||
return urlParams.get(param) ? urlParams.get(param).toLowerCase() === "true" ? true : false : defaultValue; | ||
return getUrlParamIgnoreCase(param) ? getUrlParamIgnoreCase(param).toLowerCase() === "true" ? true : false : defaultValue; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
function getUrlParamIgnoreCase(name) { | ||
const urlParams = new URLSearchParams(window.location.search); | ||
for (const [key, value] of urlParams.entries()) { | ||
if (key.toLowerCase() === name.toLowerCase()) { | ||
return value; | ||
} | ||
} | ||
return null; | ||
} | ||
|