[Qgis-user] How to make a raster or grid from a shapefile

Micha Silver micha at arava.co.il
Sun Oct 31 09:53:43 EDT 2010


Manuel Spínola wrote:

> Thank you very much Micha,
>
> I want to make a grid or raster from a land us / land cover shapefile, 
> a polygon with 9 categories.  I want this to model a species 
> distribution, based on animal ocurrence.
In that case you can import the vector shapefile into the GRASS and 
convert to a raster using the QGIS plugin.
Start by setting up a GRASS Location and mapset. The location coordinate 
system MUST match the CRS of the shapefile.
Next use v.in.ogr in the GRASS toolbox to import the vector to GRASS.
Now be sure to set the current region to match that imported vector.  
Use g.region, or just edit the region manually with the "Edit region" 
toolbar button.
Then use the module v.to.rast.attrib to make the vector into a raster. 
Select the landcover attribute column as the raster category (must be an 
integer)

Regards,

> Categories:
>
> Forest
> Crops
> Wetlands
> Disturbed Forests
> Grasslands
> Urban Areas
> Water
> Bareground
> No data
>
> Best,
>
> Manuel
>
> On 31/10/2010 03:33 a.m., Micha Silver wrote:
>> Manuel Spínola wrote:
>>
>>> Thank you very much Paolo,
>>>
>>> Which function should I use grid?
>>> Should I provide any specific parameter?
>> You'll have to tell us what sort of shapefile, and what exactly you 
>> want to do.
>> i.e. is it a point shapefile that you want to *interpolate* into a grad?
>> or is it a line/area that you just want to rasterize?
>>
>>> Best,
>>>
>>> Manuel
>>>
>>> On 30/10/2010 03:09 p.m., Paolo Cavallini wrote:
>>>> Il 30/10/2010 22:29, Manuel Spínola ha scritto:
>>>>    
>>>>>  Dear lis members,
>>>>>
>>>>> How to make a raster or grid from a shapefile?
>>>>>       
>>>> either through the Raster tools plugin, or using the grass plugin.
>>>> All the best.
>>>>
>>>>     
>>>
>>>
>>> -- 
>>> *Manuel Spínola, Ph.D.*
>>> Instituto Internacional en Conservación y Manejo de Vida Silvestre
>>> Universidad Nacional
>>> Apartado 1350-3000
>>> Heredia
>>> COSTA RICA
>>> mspinola at una.ac.cr <mailto:mspinola at una.ac.cr> 
>>> <mailto:mspinola at una.ac.cr>
>>> mspinola10 at gmail.com <mailto:mspinola10 at gmail.com> 
>>> <mailto:mspinola10 at gmail.com>
>>> Teléfono: (506) 2277-3598
>>> Fax: (506) 2237-7036
>>> Personal website: Lobito de río 
>>> <https://sites.google.com/site/lobitoderio/>
>>> Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>
>>>
>>>
>>> This mail was received via Mail-SeCure System.
>>> ------------------------------------------------------------------------ 
>>>
>>>
>>> _______________________________________________
>>> Qgis-user mailing list
>>> Qgis-user at lists.osgeo.org <mailto:Qgis-user at lists.osgeo.org>
>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>> This mail was received via Mail-SeCure System.
>>>
>>>
>>>   
>>
>>
>
>
> -- 
> *Manuel Spínola, Ph.D.*
> Instituto Internacional en Conservación y Manejo de Vida Silvestre
> Universidad Nacional
> Apartado 1350-3000
> Heredia
> COSTA RICA
> mspinola at una.ac.cr <mailto:mspinola at una.ac.cr>
> mspinola10 at gmail.com <mailto:mspinola10 at gmail.com>
> Teléfono: (506) 2277-3598
> Fax: (506) 2237-7036
> Personal website: Lobito de río 
> <https://sites.google.com/site/lobitoderio/>
> Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>
>
>
> This mail was received via Mail-SeCure System.



More information about the Qgis-user mailing list