You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2015-03-08 14:22:01

AEric
Member
Registered: 2015-03-08
Posts: 2

Coordinates into osm.pbf or xml.

Hello there, i'll be brief.

I'm pretty new to OSM and programing altogether so make it easy if possible. big_smile
I have a set of coordinates just x,y and their name in a .txt file nothing fancy, and I'm trying to feed them to either Osm2pgsql or Imposm so I can use Mapnik to create a zoomable map formed of tiles just like OSM.
So the question is, how do I do that, is it even possible with those tools ?

Thanks !

Offline

#2 2015-03-08 18:50:11

n76
Member
Registered: 2013-05-22
Posts: 313

Re: Coordinates into osm.pbf or xml.

I believe that Mapnik has an import filter for comma separated value files. Sounds like your text file is pretty close to that already. You might be able to skip the Osm2pgsql and/or Imposm steps and just directly use your data in Mapnik.

Offline

#3 2015-03-10 16:27:09

stephan75
Member
Registered: 2008-05-28
Posts: 2,918

Re: Coordinates into osm.pbf or xml.

You can have a closer look at frame works like leafletjs.com or openlayers.org ... they have example / plugin pages where POIs are displayed according to an extra CSV file with coordinates, I think.
Or maybe uMap has such a feature? http://wiki.openstreetmap.org/wiki/UMap

Or tell us the number / amount of data objects you want to display ... is each one a single point? or do you have real geometries like buildings or ways in your own data?

Offline

#4 2015-03-12 16:56:02

AEric
Member
Registered: 2015-03-08
Posts: 2

Re: Coordinates into osm.pbf or xml.

Thank you for the answers.

My objects are single points yes, with connections between them, let's call them ways. For the moment I'm trying with about 200 points each one with 1 to 10 connections with others, but eventually I want to have many more, that's why the zoomable tile map is important, I want it to be possible to read. But the data itself is not much for the moment

I checked out your links, I will definitely search openlayers.org for the example with CSV file.

Last edited by AEric (2015-03-12 16:56:28)

Offline

Board footer

Powered by FluxBB