Giter VIP home page Giter VIP logo

Comments (4)

hamiltoncj avatar hamiltoncj commented on May 30, 2024 1

The Shape Tool shapes are fixed in size. You generate them once and they stay that shape. I think you are trying to create a dynamic size based on the zoom level. I think I have seen some examples of this using symbology for point layers. You might be able to use an SVG icon and have it dynamically scale depending on the zoom. You might have to use geometry generator symbology which is very powerful. I would do some Google searching on using symbology to do this. I don't know if this would help. https://plugins.qgis.org/styles/140/

from qgis-shapetools-plugin.

hamiltoncj avatar hamiltoncj commented on May 30, 2024

@boombasteek Initially I thought you were using an attribute for the radius and that works correctly. The zoom_level variable seems only to be available from a processing algorithm and it seems to get fixed at the time you launch the algorithm. It does not change if you zoom in and out. You have to launch a new processing algorithm instance to get an update in the value. Here is an example of selecting zoom_level variable and then clicking on Edit to see what value is actually displayed.

image

Whatever the zoom_level is when you launch the algorithm is what the variable is set to within the processing algorithm. This seems to be a QGIS bug, but knowing that the processing algorithms are isolated from the QGIS UI, I see why it is working like this. Canvas information like zoom level is passed to the processing algorithm at the time it is launched. From then on it is fixed and the processing algorithm cannot interact with the canvas so it doesn't get updated when you zoom in or out unless you launch a new processing instance.

Assuming I understand your question correctly, I don't think there is anything I can do about this. I have tested some of the core QGIS algorithms and they are working the same way.

from qgis-shapetools-plugin.

boombasteek avatar boombasteek commented on May 30, 2024

@hamiltoncj Thanks for your response. Yes, you've understood the question correctly. It's quite inconvenient that the zoom level remains fixed. If I'm using the map of a post-processing soft (e.g. Actix), the cell visibility adapts according to the layer size (please check attached). Also if I'm displaying the pie wedge sector labels in QGIS, their visibility seems to vary according to the zoom level. I believe the same approach could be applied to the polygon feature itself.
image

from qgis-shapetools-plugin.

boombasteek avatar boombasteek commented on May 30, 2024

@hamiltoncj Got it, I'll check for the custom symbols. Hopefully will find something suitable for me

from qgis-shapetools-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.