754
edits
No edit summary |
(Add bare-bones instructions on converting from vector data) |
||
Line 33: | Line 33: | ||
Choose RASTER data, which will download a geo-referenced TIF image. | Choose RASTER data, which will download a geo-referenced TIF image. | ||
Note that the mapping from landcover to materials is performed in Materials/base/landclass-mapping.xml, and currently only maps CORINE landclasses. | Note that the mapping from landcover to materials is performed in Materials/base/landclass-mapping.xml, and currently only maps CORINE landclasses. If you have another landclasses, you will need to use your GIS (Grass, QGIS) to convert them such that the raster uses those values. | ||
=== Using Vector Data === | |||
If you wish to create higher resolution scenery, you may need to convert from vector data. | |||
Key points: | |||
* If required, re-project to WGS84. Ensure you project and layer are in the same projection. | |||
* Map the vector polygons to have the correct landclass. In QGIS, do this by adding a new attribute (Open Attribute Table, Open Field Calculator, then create a new Attribute using an expression will map to the correct landclass values | |||
* Use a rasterize command to create a raster: | |||
gdal_rasterize -l CORINE_Modified_WGS84 -a Landclass -ts 35000.0 33300.0 -a_nodata 48.0 -te 3.0 51.0 8.0 54.0 -ot Byte -of GTiff -co COMPRESS=NONE -co BIGTIFF=IF_NEEDED /home/stuart/FlightGear/VPB/data/Modified/CORINE_Modified_WGS84.gpkg /home/stuart/FlightGear/VPB/data/10m/Netherlands2.tif | |||
== Getting DEM data. == | == Getting DEM data. == |