Please create and activate an account. Afterwards send an email to forum@openseamap.eu including a short message and your username to get write access to this forum. Thanks!
Bitte erstelle einen neuen Account und schalte ihn frei. Anschließend sende eine kurze Mail mit deinem Nutzernamen an forum@openseamap.eu um Schreibzugriff für dieses Forum zu bekommen. Danke!
This server undergoes periodic maintenance and will be unavailable for a few minutes between 00:00 UTC and 01:30 UTC at the first day of the month. New posts during that time could potentially be lost.
Dieser Server wird regelmäßig gewartet und ist deshalb für einige Minuten zwischen 00:00 UTC und 01:30 UTC am Monatsanfang nicht erreichbar. Es kann sein, dass in dieser Zeit erstellte Beiträge verloren gehen.
You are not logged in.
Pages: 1
I've a couple of questions about the OpenSeaMap tile server.
First, how often are tiles re-rendered? I've update some buoyage on Lough Derg, Ireland (53, -008.25) and while the tile (12/1953/1335.png) says it was last modified on the 29th, it didn't include changes I made. I've rendered some of my own tiles using
Steffen Volkmann's pyrenderer repo and it rendered the updated marks correctly, but I'm still wondering if I've made a mistake somewhere so the changes are being picked up by the OpenSeaMap tile server.
Second, is there any current documentation on how to get one's own tile server running. I've tried using the OpenSeaMap/osm-tileserver but it's very out of date (over 3 years) and it's been a chore getting the docker images to build.
On a more positive note, I should be getting mark data for the Irish inland waterways quite soon, so we should get some better coverage threre.
Many thanks,
John
Offline
To answer my own questions where possible:
Changes are still not rendered, but I found that some changes made 29 days ago are rendered, so the interval is somewhere between 7 and 29 days
Again, Steffen Volkmann's work was of some help. I've forked the openstreetmap-tile-server repository and created a docker image on which I can now serve my own tiles. The instructions are here for anyone who is interested.
I've got all my edits made and am waiting for the community to accept them as they'll probably be viewed as mechanical changes. In the interim, they're here
Offline
My Overpass server ran out of disk space and hence was not updating the OSM data. I have now installed a bigger disc, but will first have to rebuild the database. The renderer will then start catching up - this may take a week or two.
Apologies to all for this delay.
Malcolm
Malcolm Herring, Developer
Offline
Hi Malcom,
No need to apologise. I appreciate you're running this in your free time. Thanks for the clarification.
If you don't mind me asking, what are you using to render the tiles. I've been trying to use the version at JOSM plugins, but I dont appear to be getting the same results as those generated by tiles.openseamap.org. The explanations I have are:
- I'm doing something wrong (most likely)
- The jrender Java application deprecated and you're using something else
- Or you're using a modified version
The reason I ask is because I'd like to run my own render server for an App I'm developing, mainly out of politness so that I'm not hotlinking to the official tile server. Also I like the challenge!
Many thanks,
John
Offline
minimal documentation is here:
https://wiki.opennauticalchart.org/inde … Java_Suite
and
https://github.com/OpenNauticalChart/renderer
Hope this helps, Dirk
Offline
First of all I need to apologise for casting aspersions about the location of the source code. It was a case of RTFM, or actually RTFSC…
In an effort to get the JRenderPgsql executable to build from the master branch, I had to make some changes:
Fix unimplemented methods that had been added to the ChartContext.
Replace hand-parsed XML with a DOMDocument.
I had also noticed that there was a lot of code duplication between JRender and JRenderPgsql, so I added an abstraction layer that both executables could use.
In adding the abstraction layer, I managed to introduce a bug* with the miles calculation in the ChartContext. Because everything but the light arcs rendered correctly I stupidly assumed that I was working on an obsolete branch that hadn’t implemented the light arcs…
* The distance calculated was far too big, so the arcs were being rendered, but at a radius that resulted in them being off the canvas, so it wasn’t clear what was happening.
With this fixed, I now have a tile server that is capable of rendering the tiles on demand using Tirex. The reason I’m doing it this way is that I can’t predict what regions will be needed and I can’t face having to render the world!
Just to expand on the changes I have made:
Add abstracted renderer that will accept an InputStream, File, string (filename) or XmlDocument reference.
The renderer doesn’t requires a bounding box as it maps to the world coordinates rather than offset by bounding box, which makes the transformations far simpler.
It also makes it more flexible about what OSM files are accepted.
The miles is now calculated based on the location of the Feature, rather than a one-size fits all for the bounding box.
There’s a slight performance hit as the value isn’t cached for the whole tile, but it’s more than made up for by the simplified transform function.
The JRender application now accepts either a directory (so there is no change in how it currently works) and also a file.
This means the renderer can be called on a specific OSM file rather than it having to be renamed, which is useful for testing.
When rendering at or above ZL 12, it not longer deletes all the files first. Instead it attempts to render the tile, and if nothing was rendered only then are all the files for all the child tiles deleted.
This speeds up rendering as its not deleting files only to recreate them again, but only deleting files that need to be deleted.
I’m getting the exact same rendering results (as now expected), and am getting better performance too - YMMV.
$ time java -jar ../jrender-mine.jar ./tmp/ ./tiles-mine 12 1979 1326
real 0m3.128s
user 0m3.994s
sys 0m0.801s
$ time java -jar ../jrender-master.jar ./tmp/ ./tiles-master/ 12 1979 1326
real 0m5.805s
user 0m4.610s
sys 0m1.435sThe changes I’ve made are available here
Offline
Pages: 1