Virtual Planet Builder: Difference between revisions

Jump to navigation Jump to search
(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.  If you have another landclasses, you will need to use your GIS (Grass, QGIS) to convert them such that the raster uses those values.
Note that the mapping from landcover to materials is performed in Materials/base/landclass-mapping.xml, and currently only maps CORINE raster landclasses.  If you have another landcover source (e.g. the US NLCD, or CORINE vector data), you will need to use your GIS (Grass, QGIS) to convert them such that the raster uses the correct landclass indexes.
 
On QGIS you can do this as follows:
 
* Open the Attribute Table
* Create a new field (c_index) with type int
* Open the field calculator the update the new field (c_index) using a calculation that maps from the landclass fields in your data.  For CORINE vector data this is the c18 field.  An example is below:
<syntaxhighlight>
CASE
WHEN c18=111 THEN 1
WHEN c18=112 THEN 2
WHEN c18=121 THEN 3
WHEN c18=122 THEN 4
WHEN c18=123 THEN 5
WHEN c18=124 THEN 6
.
.
.
END
</syntaxhighlight>


=== Using Vector Data ===
=== Using Vector Data ===

Navigation menu