-
Notifications
You must be signed in to change notification settings - Fork 397
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Rework raw user settings hierarchy
These changes allow that all settings are null in the beginning and only the raw settings from the users are initialized. This allows to later differentiate what settings have been given by the user and which not. What is missing is the remaining logic: Set the default_config as the next hierarchy and after all the remaining defaults, that are necessary.
- Loading branch information
1 parent
2db243d
commit 476d1ad
Showing
19 changed files
with
460 additions
and
361 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
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
23 changes: 23 additions & 0 deletions
23
...gine/src/main/java/org/heigit/ors/config/profile/defaults/DefaultElevationProperties.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,23 @@ | ||
package org.heigit.ors.config.profile.defaults; | ||
|
||
import org.heigit.ors.common.DataAccessEnum; | ||
import org.heigit.ors.config.ElevationProperties; | ||
|
||
import java.nio.file.Paths; | ||
|
||
public class DefaultElevationProperties extends ElevationProperties { | ||
|
||
public DefaultElevationProperties() { | ||
this(false); | ||
} | ||
|
||
public DefaultElevationProperties(Boolean setDefaults) { | ||
if (setDefaults) { | ||
setPreprocessed(false); | ||
setDataAccess(DataAccessEnum.MMAP); | ||
setCacheClear(false); | ||
setProvider("multi"); | ||
setCachePath(Paths.get("./elevation_cache")); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.