OpenStreetMap 로고 OpenStreetMap

Convert osm data to poi : osm2poi

tibob님이 English로 2009년 12월 4일에 게시함.

As I needed some extra POI (DM supermarkets in Germany) in my GPS (Tomtom One), I started developing a small python script that reads an osm xml file and produces POI files from its content : osm2poi

The work is still in progress, but as it is already usable to produce openlayer compatible files, I released version 0.1 today. If you want to try, you can download it on https://sourceforge.net/projects/osm2poi/files/osm2poi_0.1.tgz/download . You will need Python and python-xml (and also gpsbabel to produce .kml files). I did not test it on windows (yet).

Comments, wishes and help are welcome ;-)

이메일 아이콘 Bluesky 아이콘 Facebook 아이콘 LinkedIn 아이콘 마스토돈 아이콘 텔레그램 아이콘 X 아이콘

토론

2009년 12월 4일 19:56giggls님의 의견

Looking at the scripts in the POI_list directory I think you should allow for regular expressions in the value part of the key/value tuples. Furthermore it would be nice to be able to declare classes of e.g. banks and extract them as a single POI type.

The reason why I think this would be nice is that while looking at the bank.py script I was wondering if it would be possible to add code to extract all the banks where I can get money without paying an additional fee. Examples for such classes in germany would be alliances like "cash-pool" or "cash-group"

2009년 12월 4일 20:33tibob님의 의견

Hi Sven,

Regular expressions are already allowed in the value part, see cars.py as an example.

For the classes of banks, I commited an example in bank.py : https://sourceforge.net/apps/trac/osm2poi/browser/trunk/POI_list/bank.py

I also documented the POI_list syntax, also in trunk.

Cheers,

tibob

2009년 12월 4일 20:49giggls님의 의견

Hm, looks like I owe you a patch now...

댓글을 남기려면 로그인하세요