Shapefiles
From OpenStreetMap Wiki
(Redirected from Shapefile)
Available languages
• English
Other languages
• Afrikaans • አማርኛ • العربية • অসমীয়া • Asturianu • Azərbaycanca • Български • বাংলা • Brezhoneg • Bosanski • Català • Corsu • Česky • Dansk • Deutsch • ދިވެހިބަސް • Ελληνικά • Esperanto • Español • Eesti • Euskara • فارسی • Suomi • Français • Frysk • Gaeilge • Kréyòl gwadloupéyen • Gàidhlig • Galego • Alemannisch • ગુજરાતી • هَوُسَ • עברית • हिन्दी • Hrvatski • Kreyòl ayisyen • Magyar • Հայերեն • Interlingua • Bahasa Indonesia • Igbo • Íslenska • Italiano • 日本語 • Basa Jawa • ქართული • Қазақша • ភាសាខ្មែរ • ಕನ್ನಡ • 한국어 • Kurdî • Lëtzebuergesch • ລາວ • Lietuvių • Latviešu • Malagasy • Македонски • മലയാളം • मराठी • Bahasa Melayu • Malti • မြန်မာဘာသာ • नेपाली • Nederlands • Norsk (nynorsk) • Norsk (bokmål) • Occitan • Oromoo • ଓଡ଼ିଆ • ਪੰਜਾਬੀ • Polski • پښتو • Português • Português do Brasil • Română • Română (Moldova) • Русский • سنڌي • සිංහල • Slovenčina • Slovenščina • Soomaaliga • Shqip • Српски / Srpski • Svenska • தமிழ் • తెలుగు • Тоҷикӣ • ไทย • Türkçe • Українська • اردو • O'zbek • Tiếng Việt • Wolof • isiXhosa • Yorùbá • 中文(简体) • 中文(繁體) • isiZulu
Shapefiles or .shp files are a standard way of representing GIS vector data. In fact a .shp file is a grouping of several files formatted to represent different aspects of geodata. There are several ways of working with Openstreetmap data and shapefiles.
Contents |
Download shapefiles of OSM data
- download shapefiles created by Cloudmade
- download shapefiles created by Geofabrik
Making shapefiles from OpenStreetMap data
- QGIS (qgis.org) - This desktop GIS software has an OSM plugin allowing you to open OSM files and save them to shapefile.
- If you load OSM data into a PostGIS database using osm2pgsql, then you can use some PostGIS capable GIS sofware (e.g. those listed below) or run pgsql2shp (feature of PostGIS) to create a shapefile.
- OSMLib - A ruby library which can convert to shapefile following a rules file.
- osm2shp in OSM SVN - C++ script developed by User:Frederik Ramm used by Geofabrik for their shapefile downloads. Fast and scaleable, but maybe not so configurable
- osm2shp in google code - C# conversion utility - Seems to be under development by User:Cipt2001
- osm2shp on github - C++ conversion utility, can read complete planet.osm.gz and planet.osm.bz2 streams directly, support tag filtering, under development by User:minad
- Osmium can convert OSM data to shapefiles. The easiest way is using the included osmjs program which gives you a lot of flexibility in defining what OSM features should end up in what way in the shapefiles.
- Converting OSM to GML - includes follow up information on going from GML to shapefile
- osm2shp Java - A very simple command line tool to convert OSM files to Shapefiles. Written in Java. No input from community on its project page. http://sourceforge.net/scm/?type=svn&group_id=355596
- LocalOsmToShp - To Translate local OpenStreetMap files to shapefiles. Browse C code, documents and examples in proyect files. Can translate points, ways and relations features, controlling the DBF file (columns and fields). By User:Jrtamayo
Making OpenStreetMap data from Shapefiles
Whilst you may want to convert shapefiles into .osm format for some other reason (e.g. to work with OpenStreetMap related tools) such conversion is normally done as part of an import process. See Import/Shapefile for details.
Merkaartor has support for reading shapefiles.
Working with shapefiles
There's lots of very expensive GIS software which works with shapefiles: ArcGIS, MapInfo, Maptitude,Manifold and such like.
Open Source alternatives include:
- Quantum GIS or QGIS ([1])
- GRASS GIS ([2])
- gvSIG Desktop ([3])
- OpenJUMP ([4])
- MapWindow GIS [5]
- udig [6]
Other tools and tricks for working shapefiles: