You are not logged in.
Hello,
My goal is to get the list of all seamarks and use them with the stack ELK ( Elasticsearch, kibana and logstash).
So I downloaded planet PBF file and tried to extract all "seamark" tags with help of OSMOSIS plugin.
I could sucessfully extract german's sermarks and north america's searmarks, but not all of them (only arround 500 for France...)
I repeated several times this operations ( as it takes several hours to proceed)but it always gives the same results.
As I have no error message, I would like to know where I can download searmark's tag for the whole planet... ?
Best Regards,
David
Last edited by david (2015-05-28 14:25:53)
Offline
All OpenSeaMap objects in planet.osm have a "seamark:type=*" tag. You may find objects with "seamark=*" tags, but these were part of a now-abandoned tagging proposal dating from 2009. If you want a pre-extracted OSM file with all the OpenSeaMap objects, you can download it from here: tiles.openseamap.org/seamark/world.osm. This file is updated daily.
Malcolm Herring, Developer
Offline
Hello,
Thanks a lot.
I have now retrieved 85 000 nodes after executing this line :
osmosis --read-xml world.osm --write-elasticsearch cluster.hosts="localhost" index.name="worldseamarks"
Checking Data right now.
Still don't know why I am having only 14850 nodes when filtering on seamark tags with the whole Planet OSM file ?
Offline
I am not familiar with osmosis, so please explain exactly what filter terms you are using?
PS: https://taginfo.openstreetmap.org/keys/seamark%3Atype will show you what there is to be found. Note that the "seamark:type" tags are on nodes, ways and relations. If you only look for node tags, then you will miss many features.
Malcolm Herring, Developer
Offline
Thanks for this usefull links.
# World.osm ( whole data)
Here is the way I am executing Osmosis :
osmosis --read-xml world.osm --tf accept-nodes seamark=* --tf accept-relations --tf accept-ways --write-elasticsearch cluster.hosts="localhost" index.name="worldseamarks"
I obtain only 14850
#2 : With pre-extracted OSM file with all the OpenSeaMap objects :
I obtain 85 000 nodes, which seems to be fewer than expected :
osmosis --read-xml world.osm --write-elasticsearch cluster.hosts="localhost" index.name="worldseamarks"
https://taginfo.openstreetmap.org/keys/seamark%3Atype
[All] 181 418
[Node] 163 431
[Way] 17 887
[Relation] 100
Under investigation.
Offline
You should use "seamark:type=*" as your osmosis filter. ("seamark=*" is not an OpenSeaMap tag. It belongs to a rival tagging proposal that was abandoned in 2010.)
Since you are using world.osm as your input, there is no need to have a filter at all, since world.osm contains only seamark objects.
Malcolm Herring, Developer
Offline
Indeed, I was filtering with a wrong tag.
Thanks, your help is priceless !
Offline
Hi,
I tried to download the above mentioned http://tiles.openseamap.org/seamark/world.osm file but it returns an http 404 error
Could you help me to download the file?
Thanks in advance and best regards
Sven
OpenSeaMap AT5 charts maintainer
Offline
Indeed, the file was not there. I don't know how it got deleted. I have manually uploaded it, and I will take a look tomorrow to see if it has been updated (That should happen just after midnight, BST).
Malcolm Herring, Developer
Offline
Indeed, the file was not there. I don't know how it got deleted. I have manually uploaded it, and I will take a look tomorrow to see if it has been updated (That should happen just after midnight, BST).
The download is working, thank you!
I will try again tommorow because my updates from Saturday are missing in this version.
OpenSeaMap AT5 charts maintainer
Offline