OpenSeaMap Forum

For new registrations: Please create and activate an account. Afterwards send an email to forum.openseamap@gmail.com including a short message and your username to get write access to this forum. Thanks!
Für neue Registrierungen: Bitte erstelle einen neuen Account und schalte ihn frei. Anschließend sende eine kurze Mail mit deinem Nutzernamen an forum.openseamap@gmail.com um Schreibzugriff für dieses Forum zu bekommen. Danke!

You are not logged in.

#1 2015-05-28 13:38:36

david
Member
Registered: 2015-05-04
Posts: 4

Cardinal missing

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

#2 2015-05-28 14:21:18

malcolmh
Member
From: Hull, UK
Registered: 2012-09-05
Posts: 181

Re: Cardinal missing

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

#3 2015-05-29 09:23:33

david
Member
Registered: 2015-05-04
Posts: 4

Re: Cardinal missing

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

#4 2015-05-29 09:44:41

malcolmh
Member
From: Hull, UK
Registered: 2012-09-05
Posts: 181

Re: Cardinal missing

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

#5 2015-06-01 15:37:32

david
Member
Registered: 2015-05-04
Posts: 4

Re: Cardinal missing

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

#6 2015-06-01 18:06:08

malcolmh
Member
From: Hull, UK
Registered: 2012-09-05
Posts: 181

Re: Cardinal missing

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

#7 2015-06-01 20:33:23

david
Member
Registered: 2015-05-04
Posts: 4

Re: Cardinal missing

Indeed, I was filtering with a wrong tag.

Thanks, your help is priceless !

Offline

#8 2015-06-29 15:32:04

Ironicsven
Member
From: Flensburg, DE
Registered: 2015-05-03
Posts: 39
Website

Re: Cardinal missing

Hi,

I tried to download the above mentioned http://tiles.openseamap.org/seamark/world.osm file but it returns an http 404 error sad

Could you help me to download the file?


Thanks in advance and best regards
Sven


OpenSeaMap AT5 charts maintainer

Offline

#9 2015-06-29 17:35:07

malcolmh
Member
From: Hull, UK
Registered: 2012-09-05
Posts: 181

Re: Cardinal missing

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

#10 2015-06-29 18:17:51

Ironicsven
Member
From: Flensburg, DE
Registered: 2015-05-03
Posts: 39
Website

Re: Cardinal missing

malcolmh wrote:

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! smile

I will try again tommorow because my updates from Saturday are missing in this version.


OpenSeaMap AT5 charts maintainer

Offline

Board footer

Powered by FluxBB