3

I have a simple CSV file with points only. Each point represents a historical location where certain last name was mentioned in the XIX century. It looks like this:

lat;lon;last_name
55.9885461;66.6202137;Shirokovskoy
44.7522963;33.8534782;Shirokozhukhov
47.434899;35.283909;Shirokolobov
47.601462;35.711934;Shirokonos
48.938369;31.959829;Shirokopoyas
48.938369;31.959829;Shirokopoyas
<...>

My data

So I successfully have added the file as Delimited Text Layer and automatically classified it by attribute 'last_name' which resulted in many colored points on the map. I would like to export each item as a png image. I've tried to use 'Export atlas layout as image' for this purpose but the best result I've got so far is a number of a PNG images which are named by each item but contains the same picture.

Is it possible to automatically export points from each item as a PNG image without showing the others? I will add that I don't even need to change view or styles for each.

asked Apr 4, 2023 at 12:12
4
  • 2
    Have you tried creating an atlas? Commented Apr 4, 2023 at 12:13
  • Yes I've tried, but it is still unclear for me how to automatically filter each output image with points from one item only. Commented Apr 4, 2023 at 12:17
  • Do you want one map per point, or one map per category? Commented Apr 4, 2023 at 12:21
  • I would like to get one map per category, yes. One last name could have many points. Commented Apr 4, 2023 at 12:23

2 Answers 2

9

According to the ideas posted here I suggest you to follow these steps:

  1. Create a non-geometry layer with the names of your categories. For example, a virtual layer with SELECT DISTINCT (name_of_the_field_that_holds_the_categories) FROM name_of_the_point_layer
  2. Create a rule-based symbology for your point layer, setting the rule "name_of_the_field_that_holds_the_categories" = @atlas_pagename. This way, only the points whose category match the atlas page name will be shown.
  3. Create a map layout with your desired extent and generate an atlas using the layer created in step 1 as the coverage layer. This way, page names will be all point categories and, according to step 2, each page will only show points whose category match the actual atlas page.
  4. Export your atlas pages in png (or any other available) format. This way, you'll get one image file representing all the points of each category.
answered Apr 4, 2023 at 13:18
1
  • Thank you for the advice! Commented Apr 26, 2023 at 14:20
2

If I understand well the question, you don't even need to create an atlas. Having your data classified in QGIS, as in this image: enter image description here

Just check/uncheck as desired and then go to the Print Composer, set your map extent and export to PNG.

answered Apr 5, 2023 at 10:30
1
  • 1
    Thank you for the advice. That is a working solution but the problem is I would have to check/uncheck manually hundreds of thousands times. Commented Apr 26, 2023 at 14:18

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.