[Qgis-user] Automating creation of county distribution maps

Nicolas Cadieux njacadieux.gitlab at gmail.com
Thu Mar 10 09:49:49 PST 2022


Hi,

I’am not quite sure what processes you want automated but if the step previously described suit your needs, then all the steps could be incorporated into a model and this model, like any algorithm found in « processing » can be batched.

Nicolas Cadieux
https://gitlab.com/njacadieux

> Le 10 mars 2022 à 08:07, Mike Breiding - Morgantown WV via Qgis-user <qgis-user at lists.osgeo.org> a écrit :
> 
> 
> I appreciate you taking the time for writing such a detailed set of instructions.
> However, it is quicker for me to do it manually.
> 
> If the process could be automated then of course it would be a different matter.
> I am working only with the ferns - less than a hundred records.
> The flower plants are over 2500.
> 
> Thanks,
> WV-Mike
> =============
>> On 3/9/2022 3:46 PM, David Strip wrote:
>> As first step towards building a model as Nicolas has suggested:
>> I assume you have a layer with the county boundaries. Export this layer as a CSV file, keeping only the name of each county in the export step, and don't export the geometry.
>> Now open this file in your spreadsheet app of choice.
>> Add a new column for each plant species.
>> Put a one in that column for each county where the species is present.
>> Save the file (still as CSV).
>> 
>> Open the county layer and the new CSV files in Ggis.
>> Open the properties window for the county layer and click on the Joins tab.
>> Click on the "+" to add a new join. Join to the CSV layer, and select the county names field as the join field for each.
>> 
>> Now your county layer has the plant species column.
>> To display a single species, open the properties window for the county layer, select symbology. Set the symbology as rule based. To color just those counties with species 1, your rule would say something like Species1 = 1, where Species1 is the field name you used. Pick a color/transparency of your choice, then set the "all others" rules to be the background color you want.
>> 
>> That does it for one species. You can then export to tiff or whatever. Getting it to cycle through all the different species is for someone else to explain.
> 
>  -- 
> Mike Breiding
> www.EpicRoadTrips.us
> _______________________________________________
> 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/20220310/39520354/attachment-0001.html>


More information about the Qgis-user mailing list