Replies: 8 comments 22 replies
-
You cannot currently point us to a bucket and let us do the autoconfiguration. This would be a natural exstension, so PRs welcome 😉 |
Beta Was this translation helpful? Give feedback.
-
Given that each of the remote pmtile' files needs its own directory cache (where in the file is XYZ), this would not be optimal. Merging those is thus going to be much simpler to manage (only one source in the catalog) and better for caching. |
Beta Was this translation helpful? Give feedback.
-
Shipping 144MB per tile generated from a tile server is.. suboptimal. You want to reduce the data to be more managable. I think what you would like to do instead is using COGs. |
Beta Was this translation helpful? Give feedback.
-
We currently support image-type sources for |
Beta Was this translation helpful? Give feedback.
-
I have not experienced this... The feature is relatively new, so there might be bugs.. |
Beta Was this translation helpful? Give feedback.
-
Thanks for all the responses 😅
The issue is the _auto_configuration? If I manually add all the files to the Martin config then it would work?
I used the word "adding" to refer to having all the data in a single file. And you use the word "merging". I'm afraid I don't understand the difference: adding and merging are not the same?
Can you briefly explain why that would be slow? I'll have a look at #1893, thank you.
I use the Odessa sample GeoTiff from here: https://www.planetobserver.com/geospatial-data-samples And prepare it with this command: Thanks again for all your feedback. |
Beta Was this translation helpful? Give feedback.
-
This is a hard one.
Martin will not handle an pmities source changing its content gracefully, or at least we don't have a testcase for this. The cost of doing so might be fine or not (calculate the $ for reads/writes of updates you anticipate in advance). If you go via an mbtiles database, you can skip a part of this, but this means running an traditional server at something like hetzner. Using COGs is also possible, but calculate your costs too if you want to use cloud storage. |
Beta Was this translation helpful? Give feedback.
-
I think I've realised something important: tile server != mosaicing server. I thought that all tile servers were also mosaic tile servers, but that's not at all the case. So now I'm thinking that I could actually do all this without any tile server (mosaic or otherwise) whatsoever! What if I consistently place all my output data (whether they're COGs or PMTiles) in mathematically known locations? Then I could just use JS to calculate which COG or PMTile to display depending on the viewport of the browser. There are 2 downsides to this:
Depending on how this goes, I can also see myself making a thin, custom server that returns a list of COGs/PMTiles for the frontend to use for its tile queries. Or indeed exploring making a basic mosaicing server that converted a single z/x/y endpoint into a reverse proxy that returned the correct tile from the catalog of 200,000. If I did do either of those I would of course be interested in seeing what would be involved in submitting PRs for them in Martin. Do they seem like features that could sensibly fit into the codebase? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking into how to serve up the output from a total viewshed project. Each raw output tile will be a raster of ~6000x6000 points covering ~600km². The data is just a single band of
f32
s, so ~144MB per tile. I'll display it as a heatmap.My current thinking is to use Martin and PMTiles. So naively, could I just point
martin
at an S3 bucket of 200,000.pmtiles
? I feel not. What bout adding all the raw tile data into one big.pmtile
? Or should I start thinking about a database?Another factor is that it could take days, weeks or months to calculate the entire planet. Let's say that I'm producing new raw tiles at a rate of 100 per day, it'd be nice to add them to a classic z/x/y slippy map website piecemeal as they come.
I'm relatively new to all this so any and all ideas are very welcome.
PS: completely unrelated question, whilst I can get Martin to work I've never been able to see anything in the Inspect view of the Web UI, and no errors in the browser's developer tools inspector.
Beta Was this translation helpful? Give feedback.
All reactions