[Qgis-user] Point Shape file to Raster conversion.

Charles Dixon-Paver charles at kartoza.com
Mon Sep 20 15:26:48 PDT 2021


The png/tiff export will include the canvas background colors. World files
have pixel coordinates though so you should be able to open the image in an
image manipulation program like photoshop, paint.net or gimp/glimpse, then
just select the background with the magic wand and delete it.

Save the resulting image and open it with the world file available and it
should work... although that depends on the software used to open it too I
guess. There might be an alternative approach using no data values but I'm
not sure how to approach it off hand.

You can also set the qgis project background to cyan or something if you
want to have a more effective chroma key effect.

One thing to note is that if you are embedding the georeference info in the
file like tif, the image programme will probably strip out the relevant
tags so you need to use a world file for that approach.

On Tue, 21 Sep 2021, 00:20 krishna Ayyala, <ayyalakrishna at gmail.com> wrote:

> Charles,
> When you get a chance, can you please help me with one question? I have
> created a geotiff file as per the direction in the link below. When I add
> this geotiff file to google earth, I am getting all the points but a white
> background. Is there a way to eliminate this white background?
>
> https://imgur.com/a/soAI4E5
>
>
>
> On Mon, Sep 20, 2021 at 1:54 PM Charles Dixon-Paver <charles at kartoza.com>
> wrote:
>
>> You can use the *Project >> Import/Export >> Export Map to Image* and
>> then make sure you select the "*Append georeference information*"
>> option. I have set up a screenshot here: https://imgur.com/a/soAI4E5
>>
>> If you still don't have any luck try making sure you are using a
>> projected CRS.
>>
>> Regards
>>
>> On Mon, 20 Sept 2021 at 21:45, krishna Ayyala <ayyalakrishna at gmail.com>
>> wrote:
>>
>>> Charles,
>>> Thanks for your reply. By exporting it as a png, I am losing the
>>> georeferenced information.i.e. when I add this png to my map, it is not
>>> falling at the appropriate location. When you get a chance, can you please
>>> guide me, How do I export it to a raster such that I do not lose the
>>> georefereced information, at the same time it should look like similar to
>>> the vector file.
>>>
>>> Regards.
>>>
>>> On Mon, Sep 20, 2021 at 1:27 PM Charles Dixon-Paver <charles at kartoza.com>
>>> wrote:
>>>
>>>> You can export the map canvas as a png with a world file. If you want a
>>>> specific dimension or aspect ratio you can do the same with the layout
>>>> manager.
>>>>
>>>> On Mon, 20 Sep 2021, 20:37 krishna Ayyala, <ayyalakrishna at gmail.com>
>>>> wrote:
>>>>
>>>>> Hello,
>>>>> I have a point shape file. Is it possible to convert it to a raster
>>>>> such that the resultant file will also appear like points only. Similar to
>>>>> how it was looking like when it was a vector file.
>>>>>
>>>>> Regards.
>>>>>
>>>>> [image: image.png]
>>>>> _______________________________________________
>>>>> 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/20210921/5259ae2d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 1658 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210921/5259ae2d/attachment.png>


More information about the Qgis-user mailing list