Википедиа:Graphics Lab/Resources/QGIS/Importing OSM roads
OpenStreetMaps data importation
вироиш- → waiting a volunteer, source: This French section.
- Concept
For small area from villages to towns to small states (< 200 x 200 km), it is often great to add roads, railways, buildings areas provided by OSM.
- Import OSM data to QGis
- Applying colormaps
Translated from French
вироишThis series of short tutorials designed to learn how to create a map with Quantum GIS (QGIS) and possibly Inkscape in addition.
QGIS is a Geographic Information System (GIS). This means that unlike Inkscape, QGIS can manage data files geolocation and geotag raw (often in the format TIFF and shp ) which can be found on the internet (mostly). Inkscape is a powerful graphical tool that will enhance the files SVG created by QGIS. Wikipédiennes (in Qml) | from [stylesheets] [stylesheet] will be used for the exported map in QGIS to SVG format is immediately in the style corresponding to conventions of Wikipedia. This will reduce the level of manual intervention in Inkscape.
To summarize, each of these tutorials is to create a type of film, and each tutorial follows this principle: download raw data → georeferenced application data of a sheet of QGIS style (+ possibly reprojection) → Export SVG by QGIS → valuation in Inkscape (minor corrections, various additions, etc..). (Note: for export in SVG can be, if you will, export all layers at once.)
It may also (depending on card type) use Gimp, 3DEM or / Global Mapper.
Reading or at least the overview of the latest manual dated QGIS is strongly recommended ([1]).
prerequisite Notions:
- The layer s QGIS work like layers of Inkscape;
- Highly recommended reading articles Tagged Image File Format and Shapefile;
- Georeferenced file (either vector or raster) ≠ non-georeferenced file (either vector or raster);
- Graphics software (Inkscape) ≠ mapping software (QGIS can "read" the georeferencing of a file);
- With matrix as well as vector sources, you can create files via QGIS matrix as well as vector;
- Vector graphics consist of points, lines and polygons (and possibly polylines or relations).
Anglicisms: Matrix = * = bitmap raster vector ≠
- Geographic marker = Geotagging = tag geolocation ≈ attribute (there can be no purely geographical data in attributes). QGIS supports these markers, unlike Inkscape.
- Layer = layer = layer (layer is the literal translation of layer and was chosen in the translation of QGIS software. The term layer is perhaps more telling.)
Preparation and software
вироишInstall software (their installation is very simple in XP such as Linux)
- QuantumGIS, http://www.qgis.org/ (no need to install North Carolina, South Dakota and Alaska data set);
- Inkscape http://inkscape.org/?lang=fr
- (Useful in some cases) 3DEM [1] available on site visualizationsoftware;
- (Useful in some cases) Global Mapper;
- (Useful in some cases) The GNU Image Manipulation program, http://www.gimp.org/.
QGIS extensions
вироишIn QGIS, install these extensions or check that they are installed (QGIS 1.8 > Extensions > Plugin Installer Python):
- Plugin installer (Extension Manager);
- GDAL tools (tools for processing raster files);
- FTools (processing tools vector files);
- OpenStreetMap plugin (OSM files to integrate as layers.)
- Polygonizer (Polygonize for intersecting segments);
- MMQGIS (to add a text layer).
Then go to Extensions > Extensions Manager and check extensions GDAL tools and OpenStreetMap plugin (which are unchecked by default).
Install one of these two additional extensions (or both) only if you can not have Linux just long enough to create shaded relief with extension Hillshade that only works on Linux :
- DEM terrain shader, to create a shaded relief (Windows);
- Raster Terrain Analysis plugin, same goal (Windows and Linux).
You can install these optional additional extensions:
- (Totally optional but interesting) Value Tool, which displays a panel in the altitude of the terrain under the mouse;
- (Optional but interesting) SimpleSVG, which allows you to export very simply view svg displayed in QGIS;
- (Totally optional) GRASS, GRASS tools allow various manipulations;
- (Optional and untested) import SRTM elevation for QGIS (would, in theory, to download directly from SRTM to QGIS).
QGIS 1.8 > Extension > Installer Python > extension (a window opens) > seek extensions from the list. Check in deposits you're connected to deposits tab, check the options in one of the boxes "show all extensions" tab is selected. Sometimes the extension is installed, but it does not appear or bug (Python error messages), in which case it may be sufficient to re-install (extension tab, select your extension installed, then click on "Re-install" (also check that the extension is checked in the list of the extension manager) Warning, some extensions are very resource intensive: problem may come from a strong lack of memory in your machine.
- If you can not find an extension: Extensions > Plugin Installer Python > (a window opens) > Repositories > Add-third deposit extension to the list > in the Extensions tab pick up your extension and install it.
Download Data
вироишImport data into QGIS
вироишImport files using the buttons described below. Each layer imported into QGIS contains a data type (points, lines, polygons). Note: a OpenStreetMap (specific button) extension .osm corresponds to three layers (points, lines, polygons)..
It is normal for the matrix layer appears gray, since you still have it applied any style. Similarly, each vector layer appears when loaded in QGIS is a random color.
Provide a projection project
вироишIf you skip this step, your data will appear in the default projection QGIS (ie lat / lon if you have not changed). Tip: you can skip this step if your area of interest is close to the Ecuador or if it has a small gap (smaller than French district). You can also skip this step if you do a test: You can very well create a non-reprojected map, regardless of the area of interest |
.
Enable default projection on the fly. It is better, even before loading a layer to activate immediately the projection on the fly: QGIS 1.8 > Preferences > Options > SCR > Enable check on the fly reprojection default. You can more easily reproject your data. Note: projection EPSG: 4326 - WGS84 is the default Equirectangular (lat / lon or flat), which "flattens" forms when the area is close to the poles. An equatorial zone will not show unsightly disfigurement.
QGIS displays raster or vector data in the projection you have him before indicated.
To choose a projection to your project, QGIS 1.8 > Preferences > Project Properties > select the desired projection in the list. When you import your raster and vector layers in the current project, they should be displayed directly in the right projection (but for rasters you will first a gray rectangle which will be applied later style topographical colors).
To choose the projection or create a custom projection, see User:Yug/Projection_sous_QGis_(brouillon)
Notes
вироиш- ↑ Visualization Software, publisher of 3DEM, closed in May 2009. 3DEM is still available but it is also kindly provided by Sémhur http://semhur.free.fr/wiki/3dem/3dem_setup.exe
To go further
вироишAvailable on the Internet, complete tutorials on Quantum GIS:
- official documentation (Manual for QGIS).
- Tutorial.
Active forums and portals:
- GIS forum (and GIS portal associated ).
See also
вироишThe table above has links to various tutorials and resources which can help in the creation of Wikipedia maps from digital georeferenced data (GIS).