Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default size of polygon #7

Open
mutipg opened this issue Mar 16, 2023 · 9 comments
Open

Default size of polygon #7

mutipg opened this issue Mar 16, 2023 · 9 comments

Comments

@mutipg
Copy link

mutipg commented Mar 16, 2023

Is it possible to permanently set my own default polygon size? Or maybe it would be possible to add a checkbox to the window with the 'Remember these settings' option?

@Tirpitz93
Copy link

I have forked this project and implemented a drop-down menu for preset sizes, with options to save and label your own presets.
My version also supports floats, has the dimensions in the toolbar, and rotates the rectangles using the mouse wheel when shift is held.
If the layer has a field rotation the angle is saved to the field. Height and width will also be saved if there is an appropriate field.

you can install from zip from here: https://codeload.github.com/Tirpitz93/QRectangleCreator/zip/refs/heads/master

@mutipg
Copy link
Author

mutipg commented Oct 14, 2024

I installed your version and the appearance of the plugin has changed, I have the option to save new settings, but despite entering different rectangle sizes or selecting them from the list, the plugin still draws a rectangle with dimensions as in the picture. Changing the preset from the list does not change the dimensions in the text fields either.
image

@Tirpitz93
Copy link

Interesting, it was working on my machine yesterday, I will check when I get home

@Tirpitz93
Copy link

Tirpitz93 commented Oct 14, 2024

Is there any console output when you open the python console in QGIS or if you run QGIS from commandline in the terminal window?

Managed to check on my VM

firefox_YEpKZGqRyP.mp4

@mutipg
Copy link
Author

mutipg commented Oct 14, 2024

The plugin actually works fine with QGIS 3.34.6-Prizren. I tried earlier on QGIS 3.16 and it still doesn't work there. Time to switch to a newer QGIS release. Thanks for a great solution to my problem with saving my own frame template!

@mutipg mutipg closed this as completed Oct 14, 2024
@Tirpitz93
Copy link

Tirpitz93 commented Oct 14, 2024

I think I know where the issue is, I have now fixed, would you be able to test in the old version. (master branch)
I used thenew(ish) |= operator, but I can make it more version tolerant

@mutipg
Copy link
Author

mutipg commented Oct 14, 2024

It seems that the plugin works fine in QGIS 3.16.16-Hannover as well. There is some problem with managing dimension templates but after adding my size I can select it from the top of the list (there is some duplicate at the bottom that does not change the frame size). Newer QGIS has the same problem.

Now it is really great. Below is a video from QGIS 3.16.16-Hannover

Thanks again for your support!

Qgis.QRectangleCreator.mp4

@mutipg
Copy link
Author

mutipg commented Oct 14, 2024

@Tirpitz93, is it difficult to add information for your fork in the plugin metadata? Currently, the plugin from the official repository and your fork are the same in the plugin list.

  • Official repository:
    image
  • Your fork
    image

@mutipg mutipg reopened this Oct 14, 2024
@Tirpitz93
Copy link

I have updated the meta data now.
I have also tried to get it on the plugin Repo but their ingest server errors out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants