<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>Hi Krishna,</p>
    <p>It's hard to say what might be happening without seeing the data,
      but the issues with the union output may be due to invalid
      geometries being created by the polygonise. Check that the
      polygonise outputs are correctly capturing the band values and run
      them through the 'Check validity' tool.</p>
    <p>If there are a lot of invalid polygons, then it will probably be
      easier to follow a raster approach such as outlined by Nicolas
      Cadieux, ie Raster Calculator: R * 1000000 + G * 1000 + B,
      followed by polygonise and then use an expression to extract the
      colour components again to colour the polygons.<br>
    </p>
    <p>Cheers,</p>
    <p>Andy<br>
    </p>
    <div class="moz-cite-prefix">On 19/07/2021 21:09, krishna Ayyala
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CADUrCAjkujFmG-AsJM7Yq2+dD9AwhbmhWx=VVODcLCiNREUaDg@mail.gmail.com">
      
      <div style="padding-bottom: 10px; padding-top: 5px;">
        <div style="padding:12px; border:1px solid #8D3970;
          background-color:#F7F9FA; color:#8D3970; font-size:14px;
          line-height:22px; font-family: Calibri, Arial, Helvetica,
          sans-serif;">
          <strong>CAUTION:</strong> This e-mail originated outside the
          University of Southampton.
        </div>
      </div>
      <div>
        <div dir="ltr">
          <div dir="ltr"><font color="#0000ff">Dear Andy,</font>
            <div><font color="#0000ff">Thanks for your reply. I did
                extract the image into three separate vectors using the
                Polygonize (Raster to vector) tool. I got three vector
                files which I named as Band1, Band2 and Band3. I did the
                union of Band1 and Band2 the result of which I named as
                "Band1_and_Band2". Again ran union tool with
                "Band1_and_Band2" and Band3. I named the result as
                Band1_and_Band2_and_Band3". This resultant vector file
                is not showing the entire area of the image. It is
                showing only part of the image. Lot of DN values for
                each band show null values.</font></div>
            <div><font color="#0000ff"><br>
              </font></div>
            <div><font color="#0000ff">Regards.</font></div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Mon, Jul 19, 2021 at
              7:40 AM Andy Harfoot <<a href="mailto:ajph@geodata.soton.ac.uk" moz-do-not-send="true">ajph@geodata.soton.ac.uk</a>>
              wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div>
                <p>Or extract the three bands into three separate vector
                  files and then union the three together to get the
                  unique combinations of RGB values.</p>
                <p>Cheers,</p>
                <p>Andy<br>
                </p>
                <div>On 18/07/2021 19:56, Nicolas Cadieux wrote:<br>
                </div>
                <blockquote type="cite">
                  <div style="padding-bottom:10px;padding-top:5px">
                    <div style="padding:12px;border:1px solid
rgb(141,57,112);background-color:rgb(247,249,250);color:rgb(141,57,112);font-size:14px;line-height:22px;font-family:Calibri,Arial,Helvetica,sans-serif"><strong>CAUTION:</strong>
                      This e-mail originated outside the University of
                      Southampton.
                    </div>
                  </div>
                  <div>Hi,
                    <div>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.<br>
                      <br>
                      <div dir="ltr">Nicolas Cadieux
                        <div><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.com%2Fnjacadieux&data=04%7C01%7Cajph%40geodata.soton.ac.uk%7C726a39561c5d442ecdba08d94af134d3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637623222094924014%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=fAzESIlmgUW0MGxRs99ZXaj9jDFTjwuQx0wTmKKTudk%3D&reserved=0" originalsrc="https://gitlab.com/njacadieux" shash="pHOR7GlmVvPuTy9tUkVkXrEA4ltgpecRlNkcut2n5XHJgO+B1mnzQVJGTigVQO4undZXN8NENaZWFbZMZ/gojvhASANqavkii7glTKT7XwnAY5EQBwr+/zYx8vzTi2ShPF6r8/Ld+Ln0/UUf8tjuUvDNvyYuxttwYD06lcIMGS0=" target="_blank" moz-do-not-send="true">https://gitlab.com/njacadieux</a></div>
                      </div>
                      <div dir="ltr"><br>
                        <blockquote type="cite">Le 18 juill. 2021 à
                          12:51, krishna Ayyala <a href="mailto:ayyalakrishna@gmail.com" target="_blank" moz-do-not-send="true">
                            <ayyalakrishna@gmail.com></a> a
                          écrit :<br>
                          <br>
                        </blockquote>
                      </div>
                      <blockquote type="cite">
                        <div dir="ltr">
                          <div dir="ltr">
                            <div><font color="#0000ff">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. </font></div>
                            <div><font color="#0000ff"><br>
                              </font></div>
                            <div><font color="#0000ff">That means; Is it
                                possible to have the vector file that
                                should have the same colors as that of
                                the image.</font></div>
                            <div><font color="#0000ff"><br>
                              </font></div>
                            <div><font color="#0000ff">Regards.</font></div>
                          </div>
                          <span>_______________________________________________</span><br>
                          <span>Qgis-user mailing list</span><br>
                          <span><a href="mailto:Qgis-user@lists.osgeo.org" target="_blank" moz-do-not-send="true">Qgis-user@lists.osgeo.org</a></span><br>
                          <span>List info: <a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-user&data=04%7C01%7Cajph%40geodata.soton.ac.uk%7C726a39561c5d442ecdba08d94af134d3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637623222094933971%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=5zETbH9pq2QgyqsDmPSfqcu67JS38UW6Xem02PLblGk%3D&reserved=0" originalsrc="https://lists.osgeo.org/mailman/listinfo/qgis-user" shash="f3TjvZ4regQJkEzMwp04GwUzFY8iAHnT4O0GDf872JFPPQToFM9ZLIatw8oXMvIy9zfAa2HM0uYDpom8a8w53EJkDCjTSXneVvnJYHQHOip3f/gUpEn5k/hu8ZvnYc1etbhB7NDdSoUZgQGd9biqmapgxX46nVg3Gp/FT4vKt4U=" target="_blank" moz-do-not-send="true">
https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span><br>
                          <span>Unsubscribe: <a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-user&data=04%7C01%7Cajph%40geodata.soton.ac.uk%7C726a39561c5d442ecdba08d94af134d3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637623222094933971%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=5zETbH9pq2QgyqsDmPSfqcu67JS38UW6Xem02PLblGk%3D&reserved=0" originalsrc="https://lists.osgeo.org/mailman/listinfo/qgis-user" shash="f3TjvZ4regQJkEzMwp04GwUzFY8iAHnT4O0GDf872JFPPQToFM9ZLIatw8oXMvIy9zfAa2HM0uYDpom8a8w53EJkDCjTSXneVvnJYHQHOip3f/gUpEn5k/hu8ZvnYc1etbhB7NDdSoUZgQGd9biqmapgxX46nVg3Gp/FT4vKt4U=" target="_blank" moz-do-not-send="true">
https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span><br>
                        </div>
                      </blockquote>
                    </div>
                  </div>
                  <br>
                  <fieldset></fieldset>
                  <pre>_______________________________________________
Qgis-user mailing list
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank" moz-do-not-send="true">Qgis-user@lists.osgeo.org</a>
List info: <a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-user&data=04%7C01%7Cajph%40geodata.soton.ac.uk%7C726a39561c5d442ecdba08d94af134d3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637623222094943924%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=wN1kWD1H72DaxoWa%2FwLEu6pLnw4PiWDQhls0AJCRns4%3D&reserved=0" originalsrc="https://lists.osgeo.org/mailman/listinfo/qgis-user" shash="dZOFq66xo9JpVFHSIbCGfBIjzVvwU34CqwmS+kHIjjLoOnZP1SBCwTnaabe7jeLQLpQRGIDpQq/+EJ1jxKm1+bvSZfHJ5GGxv36znE2GeLZuaHlj/ZQ7AahVDXcDgI5O2Gx/30/SEjLTQWZHDyMLtLlzanrwPfyaP8YINzLTJi8=" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-user&data=04%7C01%7Cajph%40geodata.soton.ac.uk%7C726a39561c5d442ecdba08d94af134d3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637623222094943924%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=wN1kWD1H72DaxoWa%2FwLEu6pLnw4PiWDQhls0AJCRns4%3D&reserved=0" originalsrc="https://lists.osgeo.org/mailman/listinfo/qgis-user" shash="dZOFq66xo9JpVFHSIbCGfBIjzVvwU34CqwmS+kHIjjLoOnZP1SBCwTnaabe7jeLQLpQRGIDpQq/+EJ1jxKm1+bvSZfHJ5GGxv36znE2GeLZuaHlj/ZQ7AahVDXcDgI5O2Gx/30/SEjLTQWZHDyMLtLlzanrwPfyaP8YINzLTJi8=" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
                </blockquote>
                <pre cols="72">-- 
Andy Harfoot

Skype: gdi_ajph
Teams: <a href="mailto:ajph@soton.ac.uk" target="_blank" moz-do-not-send="true">ajph@soton.ac.uk</a>

GeoData Institute
University of Southampton
Southampton
SO17 1BJ

<a href="http://www.geodata.soton.ac.uk" target="_blank" moz-do-not-send="true">www.geodata.soton.ac.uk</a></pre>
              </div>
              _______________________________________________<br>
              Qgis-user mailing list<br>
              <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank" moz-do-not-send="true">Qgis-user@lists.osgeo.org</a><br>
              List info: <a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-user&data=04%7C01%7Cajph%40geodata.soton.ac.uk%7C726a39561c5d442ecdba08d94af134d3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637623222094953881%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=is3mNJfvuNshxwSmrU4MGXV8DQU%2Fehvast5R9XqYf9c%3D&reserved=0" originalsrc="https://lists.osgeo.org/mailman/listinfo/qgis-user" shash="IN0q7f4fqnFPGo9t5MF1AO1d3gRiX0LxYK2Q/+cQhsbmsouLA91xY1+XEsDebSgWq3PI6s2sRlugQ+FJ3oT8cx5y+Z9m9ctb9cFRG8FkURBB/p+TeAU8WEhKegHTdKVFv+SYqb+Xml0bXqyWE5LVMlemMavmfRKZFlaigudNqbI=" rel="noreferrer" target="_blank" moz-do-not-send="true">
                https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
              Unsubscribe: <a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-user&data=04%7C01%7Cajph%40geodata.soton.ac.uk%7C726a39561c5d442ecdba08d94af134d3%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637623222094953881%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=is3mNJfvuNshxwSmrU4MGXV8DQU%2Fehvast5R9XqYf9c%3D&reserved=0" originalsrc="https://lists.osgeo.org/mailman/listinfo/qgis-user" shash="IN0q7f4fqnFPGo9t5MF1AO1d3gRiX0LxYK2Q/+cQhsbmsouLA91xY1+XEsDebSgWq3PI6s2sRlugQ+FJ3oT8cx5y+Z9m9ctb9cFRG8FkURBB/p+TeAU8WEhKegHTdKVFv+SYqb+Xml0bXqyWE5LVMlemMavmfRKZFlaigudNqbI=" rel="noreferrer" target="_blank" moz-do-not-send="true">
                https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Andy Harfoot

Skype: gdi_ajph
Teams: <a class="moz-txt-link-abbreviated" href="mailto:ajph@soton.ac.uk">ajph@soton.ac.uk</a>

GeoData Institute
University of Southampton
Southampton
SO17 1BJ

<a class="moz-txt-link-abbreviated" href="http://www.geodata.soton.ac.uk">www.geodata.soton.ac.uk</a></pre>
  </body>
</html>