-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Field domain created incorrectly #52318
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Crash/Data Corruption
Data Provider
Related to specific vector, raster or mesh data providers
QGIS Browser
Comments
Mario-F-F
added
the
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
label
Mar 20, 2023
@Mario-F-F I cannot replicate the reported behaviour. Could you please specify more details and more detailed steps to replicate the issue? |
I have record this sample range02.webm |
@Mario-F-F thanks for reporting. You missed to specify that the field type parameter should be changed to |
|
agiudiceandrea
added
Data Provider
Related to specific vector, raster or mesh data providers
Crash/Data Corruption
labels
Mar 25, 2023
3 tasks
rouault
added a commit
to rouault/QGIS
that referenced
this issue
May 31, 2023
…ta type (fixes qgis#52318) This fixes the main issues: crashes / data corruption. Note however that currently the GeoPackage driver doesn't really support storing the data type of a field domain, so on reading, range domains are always read as of type Real (unless there is a layer field associated with that domain). An idea could be to (ab)use the description field of the GeoPackage system table to include a conventional suffix like " (type Integer)" that would be automatically set and stripped off by the OGR GPKG driver. It could also be nice that the QGIS GUI only proposes types that make sense for the underlying provider, but there's a lack of infrastructure for that.
rouault
added a commit
to rouault/QGIS
that referenced
this issue
May 31, 2023
…ta type (fixes qgis#52318) This fixes the main issues: crashes / data corruption. Note however that currently the GeoPackage driver doesn't really support storing the data type of a field domain, so on reading, range domains are always read as of type Real (unless there is a layer field associated with that domain). An idea could be to (ab)use the description field of the GeoPackage system table to include a conventional suffix like " (type Integer)" that would be automatically set and stripped off by the OGR GPKG driver. It could also be nice that the QGIS GUI only proposes types that make sense for the underlying provider, but there's a lack of infrastructure for that.
rouault
added a commit
to rouault/QGIS
that referenced
this issue
Jun 2, 2023
…ta type (fixes qgis#52318) This fixes the main issues: crashes / data corruption. Note however that currently the GeoPackage driver doesn't really support storing the data type of a field domain, so on reading, range domains are always read as of type Real (unless there is a layer field associated with that domain). An idea could be to (ab)use the description field of the GeoPackage system table to include a conventional suffix like " (type Integer)" that would be automatically set and stripped off by the OGR GPKG driver. It could also be nice that the QGIS GUI only proposes types that make sense for the underlying provider, but there's a lack of infrastructure for that.
qgis-bot
pushed a commit
that referenced
this issue
Jun 4, 2023
…ta type (fixes #52318) This fixes the main issues: crashes / data corruption. Note however that currently the GeoPackage driver doesn't really support storing the data type of a field domain, so on reading, range domains are always read as of type Real (unless there is a layer field associated with that domain). An idea could be to (ab)use the description field of the GeoPackage system table to include a conventional suffix like " (type Integer)" that would be automatically set and stripped off by the OGR GPKG driver. It could also be nice that the QGIS GUI only proposes types that make sense for the underlying provider, but there's a lack of infrastructure for that.
nyalldawson
pushed a commit
that referenced
this issue
Jun 8, 2023
…ta type (fixes #52318) This fixes the main issues: crashes / data corruption. Note however that currently the GeoPackage driver doesn't really support storing the data type of a field domain, so on reading, range domains are always read as of type Real (unless there is a layer field associated with that domain). An idea could be to (ab)use the description field of the GeoPackage system table to include a conventional suffix like " (type Integer)" that would be automatically set and stripped off by the OGR GPKG driver. It could also be nice that the QGIS GUI only proposes types that make sense for the underlying provider, but there's a lack of infrastructure for that.
nyalldawson
pushed a commit
that referenced
this issue
Jun 9, 2023
…ta type (fixes #52318) This fixes the main issues: crashes / data corruption. Note however that currently the GeoPackage driver doesn't really support storing the data type of a field domain, so on reading, range domains are always read as of type Real (unless there is a layer field associated with that domain). An idea could be to (ab)use the description field of the GeoPackage system table to include a conventional suffix like " (type Integer)" that would be automatically set and stripped off by the OGR GPKG driver. It could also be nice that the QGIS GUI only proposes types that make sense for the underlying provider, but there's a lack of infrastructure for that.
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Crash/Data Corruption
Data Provider
Related to specific vector, raster or mesh data providers
QGIS Browser
What is the bug or the crash?
On a geopackage database, when you create a range field domain, if "inclusive" is selected, it is created with min and max value as 0
Steps to reproduce the issue
In browser panel, select any geopackage.
Right-click. Select new field domain / new range domain
Set name, min,max range and keep selected both "inclusive" and accept
Misscreation of the range field domain may be checked:
Versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>Complementos activos de Python
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: