[Qgis-user] Problem with raster calculator

chingchai humhong chingchai.h at gmail.com
Fri Nov 7 05:17:59 PST 2014


Hi,
I'm not sure. do you want this?

1. Convert vector to raster. You can click menu Raster > Conversion >
Rasterize (Vector to Raster)

2. Raster Calculator expression => ("raster at 1"  = -9999) * 0  + ("raster at 1"
> -9999)*"raster at 1"

Best Regards

2014-11-07 18:56 GMT+07:00 Andrés Ocaña Carretón <andresocaac at yahoo.es>:

> Hi!
>
> I have a problem with the raster calculator and I would like someone to
> help me.
>
> I created a raster layer from a vector layer.
> The new raster layer has cells with values assigned to the vector layer and
> the rest with -9999 values. I want the cells to pass values -9999 have
> values 0.
>
> For this I use the raster calculator and the following formula:
> if (layer name = 100,100,0)
>
> 100 is the value of the cells that had assigned value in the vector layer.
>
> However I get the message invalid expression.
> Does anyone could tell me where is the problem? Or help me get what I want
> ?
>
> Thank you
>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>



-- 
Chingchai  Humhong
Regional Center of Geo-Informatics and
Space Technology, Lower Northern Region
Naresuan University Phitsanulok 65000
Lat:16.742496, Lon:100.191605
Mobile: 08-4624-6278
Blog: http://nu-gis.blogspot.com
Website: http://www.cgistln.nu.ac.th
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20141107/bf230ae8/attachment.html>


More information about the Qgis-user mailing list