I'm prototyping a Java application, which uses an OSM map of a small city.
I need to extract from the OSM map the coordinates of
- power lines and
At the moment I'm aware of only one way to do it - setup a PostgreSQL database with PostGIS, import the map there and then run SQL queries to get the data.
Are there any alternatives, ways to implement it (reading coordinates of objects a-d) in a more lightweight way (without the nontrivial installation of PostGIS, except Portable GIS) ?
For now, I don't care about performance, I just want to learn how to work with OSM in Java.