u/FisingBehindeTheNet

▲ 4 r/QGIS

Dynamic dropdown menus in model designer

I'm working on a project where the goal is to make a QGIS model that can generate a summary of the surroundings based on map data I have collected. The map data covers the whole country, but I only want to select a single city of my choosing. I have a vector layer containing all the cities in the country.

Ideally, I would like the user to be able to select one of the cities, and then clip my data based on that selected city from the vector layer. However, I can't figure out how to create a dropdown menu for selecting the city when running the model.

I found the enum function, but it requires me to add all the cities by hand, which is tedious and prone to mistakes. What are my options?

reddit.com
u/FisingBehindeTheNet — 11 days ago