This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Import shapefile as .osm

0

Hi, I want to edit my shapefile using OSM editor (Potlatch2/iD). For this, we need to upload the data (shapefile data) in the server. Do we need to convert it into .osm format? If so, how?

Thanks in advance.

asked 05 Dec '13, 09:31

GoldenCompass's gravatar image

GoldenCompass
40336
accept rate: 0%

5

There are lots of issues associated with importing beyond the purely technical ones (where did the data come from; does it duplicate anything already in OSM etc.) - I'd read through the list of previous import questions first before deciding that this is really what you want to do.

(05 Dec '13, 11:09) SomeoneElse ♦

Thanks.. I could find out some tools which could be useful for my case. ogr2osm/shp2osm/polyshp2osm are there which can be handy for my requirements. Thanks again.

(05 Dec '13, 11:20) GoldenCompass

One Answer:

6

Potlatch and iD are not general-purpose shapefile editors and are not really suitable for your task. They are intended for editing the single worldwide OpenStreetMap database.

If you intend to add information from the shapefile to the OpenStreetMap database, such that everyone can see and edit it, you must make sure that you follow the Import Guidelines.

However, if you simply need to edit a shapefile, you should choose a more appropriate tool, such as QGIS. (At a pinch you could install the full "Rails port" OpenStreetMap server stack on your own machine, but this would be massive overkill.)

answered 05 Dec '13, 11:28

Richard's gravatar image

Richard ♦
30.9k44279412
accept rate: 18%

1

@Richard Thanks.. I did have "Rails port" deployed in the public domain (you may visit http://bhuvan-mapper.nrsc.gov.in). To provide editing facility to geographically distributed persons, I asked the above question. However as I mentioned in my, I did found few useful tools which can do the required tasks. Thanks again. :)

(05 Dec '13, 11:33) GoldenCompass

@GoldenCompass: So, do you also have an own database running to which you like to import the shapefile data?

(05 Dec '13, 13:31) aseerel4c26 ♦
1

@aseerel4c26 Yes. I have setup rails port at my end. URL is in previous comment. Check it once. :)

(06 Dec '13, 09:35) GoldenCompass

Source code available on GitHub .