Replicating the Layers Panel in my app, with sub-layers Planned maintenance scheduled April...
Noise in Eigenvalues plot
Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?
What are some likely causes to domain member PC losing contact to domain controller?
Is a copyright notice with a non-existent name be invalid?
Keep at all times, the minus sign above aligned with minus sign below
How to name indistinguishable henchmen in a screenplay?
Why did Bronn offer to be Tyrion Lannister's champion in trial by combat?
How does TikZ render an arc?
The Nth Gryphon Number
What is the proper term for etching or digging of wall to hide conduit of cables
Diophantine equation 3^a+1=3^b+5^c
How do I say "this must not happen"?
Why are two-digit numbers in Jonathan Swift's "Gulliver's Travels" (1726) written in "German style"?
Are there any irrational/transcendental numbers for which the distribution of decimal digits is not uniform?
How to ask rejected full-time candidates to apply to teach individual courses?
My mentor says to set image to Fine instead of RAW — how is this different from JPG?
newbie Q : How to read an output file in one command line
Did pre-Columbian Americans know the spherical shape of the Earth?
Flight departed from the gate 5 min before scheduled departure time. Refund options
Is this Half-dragon Quaggoth boss monster balanced?
How many time has Arya actually used Needle?
Centre cell vertically in tabularx
Does the universe have a fixed centre of mass?
Pointing to problems without suggesting solutions
Replicating the Layers Panel in my app, with sub-layers
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Setting color of feature depending on attributes with PyQGIS?How to search for layers in the layers panel?Showing features in Layers panel in QGIS?Limiting list values based on previous field in QGIS Forms?How can I reorder the panel tabs in QGIScustomizing QGIS Layers Panel to show layer CRS next to layer nameHow to open the layers panel in QGIS?Removing buttons from QGIS Layers PanelError inside pyinstaller app with pyqgis & pyqt4 on WindowsHow to monitor changes in layers panel for QGIS?Layers not showing up in layers panel, but show in styling panel
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I've followed this post, using the QGIS Desktop Python Console, to create color ranges for my vector layer. QGIS displays a nice selectable tree in the Layers Panel.
Now I want to develop my own app, instead of playing in the console. How can I replicate this tree? If I only had top-level layers, I think it would be straightforward to get the list of layers from QgsMapLayerRegistry and populate my own widget. But the ranges add complexity. As far as I can tell, the sub-layers exist only in the renderer, so do I really need to dig through the renderer's items somehow?
I'm stuck with QGIS v2.18 and PyQt4 in case it matters.
qgis gui pyqt4
New contributor
add a comment |
I've followed this post, using the QGIS Desktop Python Console, to create color ranges for my vector layer. QGIS displays a nice selectable tree in the Layers Panel.
Now I want to develop my own app, instead of playing in the console. How can I replicate this tree? If I only had top-level layers, I think it would be straightforward to get the list of layers from QgsMapLayerRegistry and populate my own widget. But the ranges add complexity. As far as I can tell, the sub-layers exist only in the renderer, so do I really need to dig through the renderer's items somehow?
I'm stuck with QGIS v2.18 and PyQt4 in case it matters.
qgis gui pyqt4
New contributor
add a comment |
I've followed this post, using the QGIS Desktop Python Console, to create color ranges for my vector layer. QGIS displays a nice selectable tree in the Layers Panel.
Now I want to develop my own app, instead of playing in the console. How can I replicate this tree? If I only had top-level layers, I think it would be straightforward to get the list of layers from QgsMapLayerRegistry and populate my own widget. But the ranges add complexity. As far as I can tell, the sub-layers exist only in the renderer, so do I really need to dig through the renderer's items somehow?
I'm stuck with QGIS v2.18 and PyQt4 in case it matters.
qgis gui pyqt4
New contributor
I've followed this post, using the QGIS Desktop Python Console, to create color ranges for my vector layer. QGIS displays a nice selectable tree in the Layers Panel.
Now I want to develop my own app, instead of playing in the console. How can I replicate this tree? If I only had top-level layers, I think it would be straightforward to get the list of layers from QgsMapLayerRegistry and populate my own widget. But the ranges add complexity. As far as I can tell, the sub-layers exist only in the renderer, so do I really need to dig through the renderer's items somehow?
I'm stuck with QGIS v2.18 and PyQt4 in case it matters.
qgis gui pyqt4
qgis gui pyqt4
New contributor
New contributor
New contributor
asked 6 mins ago
Mark SchmuckerMark Schmucker
1
1
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
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
});
}
});
Mark Schmucker is a new contributor. Be nice, and check out our Code of Conduct.
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%2f319476%2freplicating-the-layers-panel-in-my-app-with-sub-layers%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Mark Schmucker is a new contributor. Be nice, and check out our Code of Conduct.
Mark Schmucker is a new contributor. Be nice, and check out our Code of Conduct.
Mark Schmucker is a new contributor. Be nice, and check out our Code of Conduct.
Mark Schmucker is a new contributor. Be nice, and check out our Code of Conduct.
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%2f319476%2freplicating-the-layers-panel-in-my-app-with-sub-layers%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