[Qgis-user] Subsection of an OSM dataset

Mayeul Kauffmann mayeul.kauffmann at free.fr
Tue Aug 2 11:57:07 PDT 2011


Hi,
You could use osmosis to create a smaller .osm (providing a bounding
box). This is multiplatform.
For the remaining part, it depends on your application. Below a link
explaining why OSM shapefiles are not of very good quality:

http://www.qgis.org/wiki/Using_OpenStreetMap_data#Let_QGIS_access_OSM_data_for_rendering

In QGIS, you'll get much better result if you can run osm2postgresql,
which is optimized for QGIS:
http://wiki.openstreetmap.org/wiki/Osm2postgresql

The above requires Linux (for the first part of the script only).
However, if you understand that the following is bash:

if my_condition; then
   my_command
fi

and that "INSERT INTO" is a SQL command, then you can use osmosis
yourself and run the second part of osm2postgresql with any sql client.

Mayeul
Le mardi 26 juillet 2011 à 00:43 -0700, Jeremy Stocks a écrit :
> Hi there,
> 
> 
> This is my first post here. I had a cursory glance at the archives but
> didn't find much of help in this respect.
> 
> 
> 
> I've downloaded a subset of an Openstreetmap planet file - even down
> to German "Regierungsbezirk" level of Oberbayern where I live, yet I
> want to narrow it down to an even smaller segment. My data were
> downloaded from Geofabrik as Shapefile as the BZ2 OSM original dataset
> didn't import into Post GIS. 
> 
> 
> Any pointers? I am on Windows XP.
> 
> 
> Jeremy Stocks
> 
> 
> Yes, shrubberies are my trade. I am a shrubber. My name is Roger the
> Shrubber. I arrange, design, and sell shrubberies. at
> http://iamrogertheshrubber.wordpress.com/
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user





More information about the Qgis-user mailing list