-
-
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
Postgis table with float type attribute interprets null as zero. #11021
Comments
Author Name: Frank Warmerdam - (Frank Warmerdam -) I chatted about this very briefly on IRC and Bob reasonable suggested that the attribute table ought to show the field as NULL (perhaps blank) and the rendering might just not draw features with null fields for classification. I skimmed the OGR provider and I see it makes no effort to distingish between NULL and non-null fields. Is it intended that providers can return features with NULL attributes marked in some fashion in the attribute map? Perhaps, those attributes should just not be added to the attribute map for that feature? Skimming the Postgres provider, it also seems to make no effort to distingish between null and non-null field values. Perhaps the problem is just at the provider level? |
Author Name: cgsbob - (cgsbob -) Replying to "cgsbob":/issues/show/962: |
Author Name: cgsbob - (cgsbob -) Replying to [comment:2 cgsbob]:
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: cgsbob - (cgsbob -) Replying to [comment:5 jef]: |
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Jürgen Fischer (@jef-n) fixed in
|
Author Name: cgsbob - (cgsbob -) Replying to [comment:8 jef]:
|
Author Name: Jürgen Fischer (@jef-n) Replying to [comment:9 cgsbob]:
Sorry, I don't get what you're saying. Did you post get mixed up?
|
Author Name: cgsbob - (cgsbob -) Replying to [comment:10 jef]:
|
Author Name: Jürgen Fischer (@jef-n) You probably missed the working version. might have worked, but my optimization in 9a584ed (SVN r8287) actually broke the postgres provider. I think I've fixed that in fa696cd (SVN r8291).
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Jürgen Fischer (@jef-n) thanks for the patience. I think I finally got it right.
|
Author Name: cgsbob - (cgsbob -) Replying to [comment:14 jef]:
Thanks for all your work! |
Author Name: Jürgen Fischer (@jef-n) Replying to [comment:15 cgsbob]:
I don't think the is a rendering issue. If you don't want to handle the null features at all, I'd suggest that you filter them out using a where clause. |
Author Name: cgsbob - (cgsbob -)
Original Redmine Issue: 962
Redmine category:vectors
Assignee: Jürgen Fischer
I tried to use Symbology>Continuous Color on a field that has nulls and noticed that these null values are interpreted as 0. As a result, I am getting a lot of black dots on my map (which I hoped would not show up on my map) along with white to red colored dots.
I also notice that "Open attribute table" shows these fields as 0 instead of null.
The text was updated successfully, but these errors were encountered: