[OSM-talk] How to import shapefile into OSM

Mikel Maron mikel_maron at yahoo.com
Fri Feb 1 04:46:34 GMT 2008


Cristiano has imported the data freed in Merano in November, which followed a similar conversion path. Might be some reusable tools there?

The main trick, as I understood it, was to convert the Shapefile data model, which is list based, into the network model of OSM. That means finding intersecting streets, and have the Way reference a common Node. Also, convert directly into the OSM format, and upload via JOSM -- this allows a manual check on the data and preserves all the tags, etc. 

Now that we've had 3 or 4 imports from Shapefiles, we should at least start to collect knowledge in the wiki, if not build some generic tools to help this process.

----- Original Message ----
From: Niccolo Rigacci <osm at rigacci.org>
To: talk at openstreetmap.org
Sent: Wednesday, January 30, 2008 8:24:35 PM
Subject: How to import shapefile into OSM


Hello,

as 
a 
result 
of 
the 
1st 
Italian 
Mapping 
Party 
we 
have 
some 
geodata 
freed 
by 
the 
Municipality 
of 
Arezzo.

The 
data 
is 
in 
ESRI 
shapefile 
format, 
any 
suggestion 
to 
convert 
it 
into 
OSM? 
We 
need 
to 
open 
it 
in 
JOSM 
before 
upload.

I 
already 
managed 
to 
reproject 
into 
WGS84 
and 
eventually 
convert 
into 
GPX, 
but 
in 
this 
way 
I 
lost 
the 
tags, 
e.g. 
highway 
names.

It 
seems 
to 
me 
that 
the 
TIGER 
import 
scripts 
are 
too 
TIGER-centric.

Happy 
Mapping!

-- 
Niccolo 
Rigacci
Firenze 
- 
Italy







More information about the talk mailing list