Thank you very much Robert.

Best,

Manuel

On 29/10/2010 05:54 p.m., Robert J. Hijmans wrote:
> Manuel,
>
> You can use overlay methods in sp or, in raster, one of:
> linesToRaster, polygonsToRaster, or pointsToRaster.
>
> This:
>
> cob = raster(cobertura)
>
> returns an 'empty' raster with the same extent as cobertura.
>
> Robert
>
>
> On Fri, Oct 29, 2010 at 4:18 PM, Manuel Spínola<mspinol...@gmail.com>  wrote:
>> Dear list members,
>>
>> How I make a raster file from a shapefile?
>>
>> I tried this, but I don't think is right.  Also, I lost the projection in
>> the raster "cob", why?
>>
>>> cob = raster(cobertura) # cobertura is a shapefile
>>> plot(cob)
>> Error en .plotraster(x, col = col, maxpixels = maxpixels, ...) :
>>   no values associated with this RasterLayer
>>
>> Best,
>>
>> Manuel
>>
>>         [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo@stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>


-- 
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspin...@una.ac.cr
mspinol...@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/>

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to