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

make the 'create scratch layer dialog' more like the 'create new shape file' dialog' #24397

Closed
qgib opened this issue Apr 30, 2017 · 3 comments · Fixed by #36289
Closed

make the 'create scratch layer dialog' more like the 'create new shape file' dialog' #24397

qgib opened this issue Apr 30, 2017 · 3 comments · Fixed by #36289
Labels
Feature Request GUI/UX Related to QGIS application GUI or User Experience

Comments

@qgib
Copy link
Contributor

qgib commented Apr 30, 2017

Author Name: Richard Duivenvoorde (@rduivenvoorde)
Original Redmine Issue: 16490

Redmine category:gui


Using scratch layers pretty often, I wonder why during the first creation dialog I'm not presented with (about) the same options as when I create a new shape file. That is: it would be cool to be able to add some attributes immediately.

Maybe this can be part of the grant proposal 'ADD CONSISTENCY TO UI CONTROLS' ?

Ah... and please also add this to the python api :-)

@qgib
Copy link
Contributor Author

qgib commented May 1, 2017

Author Name: Jürgen Fischer (@jef-n)


  • subject was changed from FEATURE REQUEST: make the 'create scratch layer dialog' more like the 'create new shape file' dialog' to make the 'create scratch layer dialog' more like the 'create new shape file' dialog'

@qgib
Copy link
Contributor Author

qgib commented May 2, 2017

Author Name: Richard Duivenvoorde (@rduivenvoorde)


Sorry Nyall if you feel offended by me assigning this to you... I just wanted to give an idea for the grant...


  • assigned_to_id removed Nyall Dawson

@qgib qgib added Feature Request GUI/UX Related to QGIS application GUI or User Experience labels May 25, 2019
alexbruy added a commit that referenced this issue May 12, 2020
allow adding attributes in the New Scratch Layer dialog (fix #24397)
@rduivenvoorde
Copy link
Contributor

@alexbruy Super! Thanks! I'm going to use this a lot!

I've tested and found 2 little quircks (one new and one old):

  • the length fields do not have a default (with me), so if you just add a 'Decimal number', you will end up with an integer because the Length and Precision apparently are 0 or null
    In the create shapfile dialog, a decimal number defaults to length 10 (though does not have a precision with me here...). Should those inputs not have sane defaults? (don't know, like 50 chars for txt, 8/10 for decimals and 10 for integers or so?)

  • one little annoyance I have pretty often is that I create an attribute, and I hit Enter... (instead of clicking the button 'add attribute') thereby loosing my last attribute. Not sure what to do there: maybe check if the fieldname is not empty before submitting the form?

Anyway: thanks, thanks for this work already!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request GUI/UX Related to QGIS application GUI or User Experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants