OsmPoiCreator

From OpenStreetMap Wiki
Jump to: navigation, search


Contents

Current State

This tool was never completed. In case you want to get POIs out of the database, use PostGIS and extract POIs by using Hstore (as http://brewpubs.openstreetmap.de/ does) or fiddle around with spatialite.


OsmPoiCreator is a tool to extract POIs from a osm file. As I'm a hobby hacker without any experience, the code looks, uhm, ugly. Thus it never has been officially released.

Meanwhile other tools should be able to do the job. Osmosis can extract polygons from an osm file and there are ready to use extracts on various locations like on geofabrik.de. The last step, finally extracting the POIs, probably can be done using Jochen Topf's osmlib for Ruby.

In short, I decided to discontinue OsmPoiCreator :) .

Features

Areas (polygonal or bounding box)

The polygon files mentioned above are rather detailed. Using one of them will cost a lot of CPU cycles. I thus recommend to use a bounding box instead or to build your own polygon file, using as less vertices as possible. The format of the polygon files is rather weird and contains a lot of blanks. If you want to create your own polygon files, a simply CSV style format should be sufficient, but I didn't test it yet. It should even be possible to use decimal coords insted of the scientific notation, but this also is untested. The files may contain an arbitrary amount of polygons, so it even is possible to define non-contiguous regions. Coords are given in lon lat, not lat lon.

Custom polygon files that should work could look like:

The file gets ended with a final END

If you do not want to use the many blanks of the original file format, try something like

Foo region
01
50,10
51,11
...
51,12
END
02
53,12
54,12
54,13
...
END
END

Category Definitions

Categories are fully configurable. Simply add your favourite POI definitions to the config file:

[Restaurants]
GetsUsed=true
Icon=Restaurant
IdentifierTags\amenity=restaurant
NameFallbackTag=amenity
NameTag=name
proximity=20

Screenshots

I plan to make it a command line only version so it can be run by task schedulers such as cron. But anyway, here's the current GUI:

Personal tools
Namespaces
Variants
Actions
site
Toolbox