Comments (7)
If I convert to yaml, I don't have this problem (so its a json thing). But the general question remains...
from tegola.
@wroge good question. We actually debated between JSON and TOML a bit early in the development of tegola and we opted for TOML as we expected config files to generally be authored by people instead of machines. TOML is easier to write by hand, and also supports comments which can be useful. YAML also has this capability, but TOML has less features than YAML so it's a bit more straight forward.
Recently we have had a few people reach out discussing how they're auto generating configs for tegola so this use case is more common than we anticipated. That considered, tegola's config layer currently parses TOML into a config struct, and this could be extended to support other config formats like JSON / YAML. Would you be interested in tackling this?
from tegola.
I will take a look at this.
EDIT: It's not that easy because env.Dict is used. It would therefore only be possible after refactoring.
from tegola.
An update to v1.3.2 would probably fix the Int-Float issue of he BurntSushi/toml package. But I dont dare to edit the modules.txt file 😩
from tegola.
@wroge want to give upgrading a try? If you clone the source code you can run the following from the repo root to upgrade:
go get -u <path to package>
go mod vendor
go mod tidy
You can then follow the build instructions.
from tegola.
FYI, in my fork I've already updated Tegola to use JSON in addition to TOML and we're using it in production right now. My work has been focused on updating our other systems that talk to Tegola, but I'll be back to finishing up my Tegola PRs later this month (dynamic config, config-in-redis, JSON config).
from tegola.
Related Issues (20)
- Support for config directory as parameter HOT 6
- GPKG coordinate conversion unavailable HOT 3
- Push images for more architectures to Docker Hub registry HOT 4
- Unable to build version from source v0.17.0 HOT 7
- Update tegola_lambda to align with AWS Go runtime deprecation and migration to al2
- Map Loading/Unloading On-Demand
- v0.18.0 Docker image has no viewer UI HOT 5
- Pass tests on Apple silicon HOT 1
- Cleanup "provider" and "register" terminology
- Set Tile Resolution / Extent HOT 4
- could not register providers: error fetching geometry type for layer (polygon): layer (polygon) returned unsupported geometry type (<nil>) HOT 3
- [ERROR] handle_map_layer_zxy.go:201: error writing tile z, x, y - short write HOT 1
- Issue when reprojecting the geometry HOT 2
- Column name error when filtering on parameters
- Filename extension for file cache HOT 2
- Option to avoid setting `default_transaction_read_only` when connecting to PostgreSQL? HOT 11
- Write config file for tables having ' - ' and capital letters in their name. HOT 4
- provider/postgis: Clean out deprecated connection params HOT 7
- Support for S3 Accelerated Bucket Endpoint in Cache Configuration HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tegola.