QGIS Gratuated Symbology gives differents results on every classification with Natural Breaks (Jenks)
When styling a polygon layer using the Graduated styling and the Natural Breaks (Jenks) mode, QGIS is classifying the data with different values.
So every time I click on "Classify" the values are different.
Why?
EDIT 1:
Using QGIS 3.4.4 on Windows 10
qgis symbology classification
add a comment |
When styling a polygon layer using the Graduated styling and the Natural Breaks (Jenks) mode, QGIS is classifying the data with different values.
So every time I click on "Classify" the values are different.
Why?
EDIT 1:
Using QGIS 3.4.4 on Windows 10
qgis symbology classification
I can't reproduce this on Ubuntu 18.04, 3.4.4-Madeira - can you add operating system and qgis version
– Ian Turton♦
7 hours ago
See Edit 1 for the info
– Gob Tron
7 hours ago
Using the same dataset, ArcMap complained that the number of features was too big and that I could increase the sample size if I want to. So maybe QGIS is taking a different sample of the data everytime I click on "Classify"?
– Gob Tron
7 hours ago
I can reproduce with QGIS 2.18 if there are "many" features. In my test, it occurred when more than 3001 features were to be classified in 5 classes.
– JGH
7 hours ago
Testing with 21426 polygon I got the same behavior (different value after each classification), the number of classes didn't matter. QGIS 3.4.1 on window 7
– J.R
6 hours ago
add a comment |
When styling a polygon layer using the Graduated styling and the Natural Breaks (Jenks) mode, QGIS is classifying the data with different values.
So every time I click on "Classify" the values are different.
Why?
EDIT 1:
Using QGIS 3.4.4 on Windows 10
qgis symbology classification
When styling a polygon layer using the Graduated styling and the Natural Breaks (Jenks) mode, QGIS is classifying the data with different values.
So every time I click on "Classify" the values are different.
Why?
EDIT 1:
Using QGIS 3.4.4 on Windows 10
qgis symbology classification
qgis symbology classification
edited 7 hours ago
Gob Tron
asked 7 hours ago
Gob TronGob Tron
979313
979313
I can't reproduce this on Ubuntu 18.04, 3.4.4-Madeira - can you add operating system and qgis version
– Ian Turton♦
7 hours ago
See Edit 1 for the info
– Gob Tron
7 hours ago
Using the same dataset, ArcMap complained that the number of features was too big and that I could increase the sample size if I want to. So maybe QGIS is taking a different sample of the data everytime I click on "Classify"?
– Gob Tron
7 hours ago
I can reproduce with QGIS 2.18 if there are "many" features. In my test, it occurred when more than 3001 features were to be classified in 5 classes.
– JGH
7 hours ago
Testing with 21426 polygon I got the same behavior (different value after each classification), the number of classes didn't matter. QGIS 3.4.1 on window 7
– J.R
6 hours ago
add a comment |
I can't reproduce this on Ubuntu 18.04, 3.4.4-Madeira - can you add operating system and qgis version
– Ian Turton♦
7 hours ago
See Edit 1 for the info
– Gob Tron
7 hours ago
Using the same dataset, ArcMap complained that the number of features was too big and that I could increase the sample size if I want to. So maybe QGIS is taking a different sample of the data everytime I click on "Classify"?
– Gob Tron
7 hours ago
I can reproduce with QGIS 2.18 if there are "many" features. In my test, it occurred when more than 3001 features were to be classified in 5 classes.
– JGH
7 hours ago
Testing with 21426 polygon I got the same behavior (different value after each classification), the number of classes didn't matter. QGIS 3.4.1 on window 7
– J.R
6 hours ago
I can't reproduce this on Ubuntu 18.04, 3.4.4-Madeira - can you add operating system and qgis version
– Ian Turton♦
7 hours ago
I can't reproduce this on Ubuntu 18.04, 3.4.4-Madeira - can you add operating system and qgis version
– Ian Turton♦
7 hours ago
See Edit 1 for the info
– Gob Tron
7 hours ago
See Edit 1 for the info
– Gob Tron
7 hours ago
Using the same dataset, ArcMap complained that the number of features was too big and that I could increase the sample size if I want to. So maybe QGIS is taking a different sample of the data everytime I click on "Classify"?
– Gob Tron
7 hours ago
Using the same dataset, ArcMap complained that the number of features was too big and that I could increase the sample size if I want to. So maybe QGIS is taking a different sample of the data everytime I click on "Classify"?
– Gob Tron
7 hours ago
I can reproduce with QGIS 2.18 if there are "many" features. In my test, it occurred when more than 3001 features were to be classified in 5 classes.
– JGH
7 hours ago
I can reproduce with QGIS 2.18 if there are "many" features. In my test, it occurred when more than 3001 features were to be classified in 5 classes.
– JGH
7 hours ago
Testing with 21426 polygon I got the same behavior (different value after each classification), the number of classes didn't matter. QGIS 3.4.1 on window 7
– J.R
6 hours ago
Testing with 21426 polygon I got the same behavior (different value after each classification), the number of classes didn't matter. QGIS 3.4.1 on window 7
– J.R
6 hours ago
add a comment |
1 Answer
1
active
oldest
votes
Looking at the code, QGIS will take the exact values if there are up to 3000 features.
Otherwise, it will take the largest between 3000 random features or a random 10% of the data.
And if you have for example 4000 features, does QGIS uses 10% of 4000 features (so 400) or it uses up to 3000 features?
– Gob Tron
6 hours ago
1
it will take the largest between 3000 features or a random 10% of the data
– J.R
6 hours ago
Ah! I read it wrong the first time.
– Gob Tron
6 hours ago
@GobTron I have clarified it. It will take 3000 random features
– JGH
6 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f311785%2fqgis-gratuated-symbology-gives-differents-results-on-every-classification-with-n%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Looking at the code, QGIS will take the exact values if there are up to 3000 features.
Otherwise, it will take the largest between 3000 random features or a random 10% of the data.
And if you have for example 4000 features, does QGIS uses 10% of 4000 features (so 400) or it uses up to 3000 features?
– Gob Tron
6 hours ago
1
it will take the largest between 3000 features or a random 10% of the data
– J.R
6 hours ago
Ah! I read it wrong the first time.
– Gob Tron
6 hours ago
@GobTron I have clarified it. It will take 3000 random features
– JGH
6 hours ago
add a comment |
Looking at the code, QGIS will take the exact values if there are up to 3000 features.
Otherwise, it will take the largest between 3000 random features or a random 10% of the data.
And if you have for example 4000 features, does QGIS uses 10% of 4000 features (so 400) or it uses up to 3000 features?
– Gob Tron
6 hours ago
1
it will take the largest between 3000 features or a random 10% of the data
– J.R
6 hours ago
Ah! I read it wrong the first time.
– Gob Tron
6 hours ago
@GobTron I have clarified it. It will take 3000 random features
– JGH
6 hours ago
add a comment |
Looking at the code, QGIS will take the exact values if there are up to 3000 features.
Otherwise, it will take the largest between 3000 random features or a random 10% of the data.
Looking at the code, QGIS will take the exact values if there are up to 3000 features.
Otherwise, it will take the largest between 3000 random features or a random 10% of the data.
edited 6 hours ago
answered 6 hours ago
JGHJGH
12.3k21136
12.3k21136
And if you have for example 4000 features, does QGIS uses 10% of 4000 features (so 400) or it uses up to 3000 features?
– Gob Tron
6 hours ago
1
it will take the largest between 3000 features or a random 10% of the data
– J.R
6 hours ago
Ah! I read it wrong the first time.
– Gob Tron
6 hours ago
@GobTron I have clarified it. It will take 3000 random features
– JGH
6 hours ago
add a comment |
And if you have for example 4000 features, does QGIS uses 10% of 4000 features (so 400) or it uses up to 3000 features?
– Gob Tron
6 hours ago
1
it will take the largest between 3000 features or a random 10% of the data
– J.R
6 hours ago
Ah! I read it wrong the first time.
– Gob Tron
6 hours ago
@GobTron I have clarified it. It will take 3000 random features
– JGH
6 hours ago
And if you have for example 4000 features, does QGIS uses 10% of 4000 features (so 400) or it uses up to 3000 features?
– Gob Tron
6 hours ago
And if you have for example 4000 features, does QGIS uses 10% of 4000 features (so 400) or it uses up to 3000 features?
– Gob Tron
6 hours ago
1
1
it will take the largest between 3000 features or a random 10% of the data
– J.R
6 hours ago
it will take the largest between 3000 features or a random 10% of the data
– J.R
6 hours ago
Ah! I read it wrong the first time.
– Gob Tron
6 hours ago
Ah! I read it wrong the first time.
– Gob Tron
6 hours ago
@GobTron I have clarified it. It will take 3000 random features
– JGH
6 hours ago
@GobTron I have clarified it. It will take 3000 random features
– JGH
6 hours ago
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f311785%2fqgis-gratuated-symbology-gives-differents-results-on-every-classification-with-n%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I can't reproduce this on Ubuntu 18.04, 3.4.4-Madeira - can you add operating system and qgis version
– Ian Turton♦
7 hours ago
See Edit 1 for the info
– Gob Tron
7 hours ago
Using the same dataset, ArcMap complained that the number of features was too big and that I could increase the sample size if I want to. So maybe QGIS is taking a different sample of the data everytime I click on "Classify"?
– Gob Tron
7 hours ago
I can reproduce with QGIS 2.18 if there are "many" features. In my test, it occurred when more than 3001 features were to be classified in 5 classes.
– JGH
7 hours ago
Testing with 21426 polygon I got the same behavior (different value after each classification), the number of classes didn't matter. QGIS 3.4.1 on window 7
– J.R
6 hours ago