How to correctly use the filter with empty values in pyQGIS?How to use `layer.getFeatures()` in a standalone...

Can I sign legal documents with a smiley face?

Count the occurrence of each unique word in the file

Pre-mixing cryogenic fuels and using only one fuel tank

What should you do when eye contact makes your subordinate uncomfortable?

Is it improper etiquette to ask your opponent what his/her rating is before the game?

How should I respond when I lied about my education and the company finds out through background check?

Why do we read the Megillah by night and by day?

Lowest total scrabble score

Creature in Shazam mid-credits scene?

GraphicsGrid with a Label for each Column and Row

What is Cash Advance APR?

Electoral considerations aside, what are potential benefits, for the US, of policy changes proposed by the tweet recognizing Golan annexation?

Why should universal income be universal?

I am looking for the correct translation of love for the phrase "in this sign love"

Are the IPv6 address space and IPv4 address space completely disjoint?

Is a bound state a stationary state?

It grows, but water kills it

Is it safe to use olive oil to clean the ear wax?

Why did the EU agree to delay the Brexit deadline?

Is there a single word describing earning money through any means?

Is there a working SACD iso player for Ubuntu?

How to implement a feedback to keep the DC gain at zero for this conceptual passive filter?

Store Credit Card Information in Password Manager?

Is it better practice to read straight from sheet music rather than memorize it?



How to correctly use the filter with empty values in pyQGIS?


How to use `layer.getFeatures()` in a standalone script?QGIS crashes when doing a rollback after modifying values of an user-added feature with pyQGISVerify if a layer is filtered Qgis pythonHow to make Processing algorithms use default parameter values in QGIS 2.14?Using v.distance python script parameter with PyQGIS?Error in qgis:selectbylocation python processing methodHow to use the QgsColorButton Widgets?Merging layers with same name in PyQGISHow do you return a set of unique pixel values in a raster with pyqgis?How to use SAGA Raster processing in processing scripts (QGIS3)













1















In my script, at the moment of having the layers loaded, I filter all the ToC layers with a unique value for all the layers.



I use the setSubsetString('"FIELD" = ' VALUE '') method, but when it does not find any field with that value, it throws me the following error: wkb outbounds.



How can I solve this? I am using QGIS 2.14.










share|improve this question
















bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    Try using " "FIELD" = 'VALUE' "

    – Joseph
    Aug 9 '18 at 14:56
















1















In my script, at the moment of having the layers loaded, I filter all the ToC layers with a unique value for all the layers.



I use the setSubsetString('"FIELD" = ' VALUE '') method, but when it does not find any field with that value, it throws me the following error: wkb outbounds.



How can I solve this? I am using QGIS 2.14.










share|improve this question
















bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    Try using " "FIELD" = 'VALUE' "

    – Joseph
    Aug 9 '18 at 14:56














1












1








1








In my script, at the moment of having the layers loaded, I filter all the ToC layers with a unique value for all the layers.



I use the setSubsetString('"FIELD" = ' VALUE '') method, but when it does not find any field with that value, it throws me the following error: wkb outbounds.



How can I solve this? I am using QGIS 2.14.










share|improve this question
















In my script, at the moment of having the layers loaded, I filter all the ToC layers with a unique value for all the layers.



I use the setSubsetString('"FIELD" = ' VALUE '') method, but when it does not find any field with that value, it throws me the following error: wkb outbounds.



How can I solve this? I am using QGIS 2.14.







qgis pyqgis qgis-plugins






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 13 '18 at 13:17









BERA

16.7k62043




16.7k62043










asked Aug 9 '18 at 14:46









Marisol PradoMarisol Prado

527




527





bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 1





    Try using " "FIELD" = 'VALUE' "

    – Joseph
    Aug 9 '18 at 14:56














  • 1





    Try using " "FIELD" = 'VALUE' "

    – Joseph
    Aug 9 '18 at 14:56








1




1





Try using " "FIELD" = 'VALUE' "

– Joseph
Aug 9 '18 at 14:56





Try using " "FIELD" = 'VALUE' "

– Joseph
Aug 9 '18 at 14:56










1 Answer
1






active

oldest

votes


















0














I don't know what u call the setSubsetString method but ...



Did u try something 'lighter' like the following ? :



"Field" like '%VALUE%'





share|improve this answer
























  • yes, but I still send the error, when my layer does not find features that match the expression.

    – Marisol Prado
    Aug 9 '18 at 15:02











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f292332%2fhow-to-correctly-use-the-filter-with-empty-values-in-pyqgis%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









0














I don't know what u call the setSubsetString method but ...



Did u try something 'lighter' like the following ? :



"Field" like '%VALUE%'





share|improve this answer
























  • yes, but I still send the error, when my layer does not find features that match the expression.

    – Marisol Prado
    Aug 9 '18 at 15:02
















0














I don't know what u call the setSubsetString method but ...



Did u try something 'lighter' like the following ? :



"Field" like '%VALUE%'





share|improve this answer
























  • yes, but I still send the error, when my layer does not find features that match the expression.

    – Marisol Prado
    Aug 9 '18 at 15:02














0












0








0







I don't know what u call the setSubsetString method but ...



Did u try something 'lighter' like the following ? :



"Field" like '%VALUE%'





share|improve this answer













I don't know what u call the setSubsetString method but ...



Did u try something 'lighter' like the following ? :



"Field" like '%VALUE%'






share|improve this answer












share|improve this answer



share|improve this answer










answered Aug 9 '18 at 14:55









snaileatersnaileater

1,519613




1,519613













  • yes, but I still send the error, when my layer does not find features that match the expression.

    – Marisol Prado
    Aug 9 '18 at 15:02



















  • yes, but I still send the error, when my layer does not find features that match the expression.

    – Marisol Prado
    Aug 9 '18 at 15:02

















yes, but I still send the error, when my layer does not find features that match the expression.

– Marisol Prado
Aug 9 '18 at 15:02





yes, but I still send the error, when my layer does not find features that match the expression.

– Marisol Prado
Aug 9 '18 at 15:02


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f292332%2fhow-to-correctly-use-the-filter-with-empty-values-in-pyqgis%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Щит и меч (фильм) Содержание Названия серий | Сюжет |...

is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

Meter-Bus Содержание Параметры шины | Стандартизация |...