Opened 12 years ago

Closed 7 years ago

#100 closed enhancement (wontfix)

Ability to submit shapefiles and import them into the database

Reported by: tom@… Owned by: mikel_maron@…
Priority: minor Milestone: Wishlist
Component: datasources Version:
Keywords: shapefiles data import polygons areas Cc:

Change History (3)

comment:1 Changed 12 years ago by mikel_maron@…

GDAL/OGR is an open source library that can translate between many geospatial data formats. OGR handles vector formats, and can read/write shapefiles.

There are a number of command line utilities included, which could be called from Ruby/Java?/etc.

comment:2 Changed 12 years ago by richard@…

The ESRI PDF is the reference I've used when parsing shapefiles before. It's a fairly basic file format (as long as you get the byte order right, of course). Never done it in Java or Ruby, I'm afraid, only Perl.

Remember that ESRI concepts won't necessarily translate directly into OSM's data model. For example, you can have polygons with 'holes' (e.g. for built-up areas containing green space). To begin with, it may be most sensible only to import a subset of the shapefile data - probably just polylines.

In so far as one can generalise, shapefiles are probably more likely to contain copyrighted data than GPX files are. I'd therefore suggest that the warning about "don't submit any copyrighted data" is amplified for this feature.

comment:3 Changed 7 years ago by stevens

  • Resolution set to wontfix
  • Status changed from new to closed

Closing as WONTFIX.
A system that automatically takes a shapefile and imports it into the OSM database would not comply with the import guidelines.

Note: See TracTickets for help on using tickets.