Comments (4)
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.
@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.
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.
@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.
from qgis-shapetools-plugin.
@hamiltoncj Got it, I'll check for the custom symbols. Hopefully will find something suitable for me
from qgis-shapetools-plugin.
Related Issues (20)
- support other language HOT 9
- Please do not include external libs HOT 6
- Plug-In installation not working HOT 2
- Arc wedge and donut creation combined HOT 6
- "XY to lines" between the points of a layer fails HOT 6
- idsbreak.svg can't be found on a case-sensitive file system HOT 4
- Add field value or Data Defined Override to scale factor for Geodesic Transformation Tool HOT 4
- Python error when edit in place is active HOT 3
- Can I call createEllipse from python shell in QGIS HOT 1
- Unable to remove dropdown buttons from toolbar HOT 3
- Improvement suggestion: Observe QGIS settings for preferred distance units HOT 2
- Improvement suggestion: provide additional format for azimuth HOT 3
- Ability to input grid reference value instead of lat/long HOT 2
- Minor usability improvement suggestions for Geodesic Measure Tool HOT 3
- Issue with creating pie wedges in Shape Tools for Telecom sectors creation HOT 15
- Couldn't load plugin 'shapetools' due to an error when calling its classFactory() method HOT 1
- User info suggestion HOT 2
- contour line free hand design HOT 2
- Create radial lines generates empty dataset HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qgis-shapetools-plugin.