[Qgis-user] Raster to Vector without losing the symbology

Nicolas Cadieux njacadieux.gitlab at gmail.com
Sun Jul 18 12:08:38 PDT 2021


Use the extract value by location to get the values from the point back into the vector grid…

Nicolas Cadieux
https://gitlab.com/njacadieux

> Le 18 juill. 2021 à 15:06, Nicolas Cadieux <njacadieux.gitlab at gmail.com> a écrit :
> 
> 
> Hi,
> 
> Another way is to create a vector grid with the same size and pixel posting as the original.  Then, get the centroids and use the point value tool to get the band values… This will give you a vector file but the file will be heavy. You could merge the vector grids after to merge values with similar values…. 
> 
> Ask yourself if you really need a vector file first.  This is not always the best file format for you data.
> 
> Nicolas Cadieux
> https://gitlab.com/njacadieux
> 
>>> Le 18 juill. 2021 à 14:56, Nicolas Cadieux <njacadieux.gitlab at gmail.com> a écrit :
>>> 
>> Hi,
>> You could create a style that could apply to both raster and vector layers but that would not help much here.  The problem is that you need to create the vector based on one of the raster Bands and not all three.  One way could be to combine all three fields into one.  If your RGB is 155 025 255, make this a raster band with 155025255. Then, I guess you could use that 4th band to make the vector layer, then resplit the data into 3 fields and use that to create the colour profile.
>> 
>> Nicolas Cadieux
>> https://gitlab.com/njacadieux
>> 
>>>> Le 18 juill. 2021 à 12:51, krishna Ayyala <ayyalakrishna at gmail.com> a écrit :
>>>> 
>>> 
>>> I have an image on my qgis map that has 3 bands. Band1 (red), Band2(green) and Band3(blue). This image has different colors.Is it possible to convert this image into a vector which should look exactly like the image. 
>>> 
>>> That means; Is it possible to have the vector file that should have the same colors as that of the image.
>>> 
>>> Regards.
>>> _______________________________________________
>>> Qgis-user mailing list
>>> Qgis-user at lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210718/f6bac721/attachment.html>


More information about the Qgis-user mailing list