Questions tagged [qml]

an XML file used to define a QGIS layer style.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

ArcGIS Qt SDK Move camera in qml

I am using developer edition of ArcGIS Qt SDK. What I am trying to do is, move camera from one point to another point in a timer. Somehow the camera does not move and is stuck on in its initial ...
1
vote
0answers
18 views

Decent satellite map for open source project?

I'm working on a cheap open source sidewalk travelling delivery robot. I built a GUI using Qt/QML which (among other things) I use to view satellite data to identify and manually mark where sidewalks ...
3
votes
2answers
126 views

Can you edit a QGIS layer style file (.qml) to create random colors?

I have a .qml file that I am using on a project importing photos using the 'import photos' plugin. Every import batch needs to have the color manually changed after importing in order to distinguish ...
2
votes
0answers
31 views

Loading style from GeoPackage with PyQGIS?

Reading the documentation I do not understand how the the row in layer_styles is specified (and why a table name has to be given)... layer.loadNamedStyleFromDatabase('/path/to/geopackage/','...
0
votes
0answers
22 views

Where do I find QGIS QML schema?

I have a set of GeoPackages created with QGIS. They have those layer_styles in it, which contain -- among other columns -- the styleQML column providing styling information. I am reading and ...
1
vote
0answers
33 views

Adding Text and defined placement to a label in SLD (from QML(QGIS))

I've created a beautiful rule-based Labeling format in QGIS 3.12. 1) I have added text to the labels. for example using the value : 'Beton' then the word Beton is added to the line 2) I also used ...
0
votes
1answer
40 views

QGIS QtQuick integration?

I would like to use QGIS with QtQuick. I can use QGIS with QtWidget with the libs that I downloaded from OSGeo4W but there is no qtquick libraries in there. In QGIS's website there is a demo with ...
1
vote
1answer
104 views

Write layer style .qml as predefined within a gpkg using R

I have this code to export a layer (Pbm) to a gpkg called "Atlas": writeOGR(Pbm, paste0(normalizePath(OutputFolder),'\\', "Atlas.gpkg"),"Atlas", driver="GPKG", encoding = "UTF-8", ...
1
vote
1answer
184 views

Create QML Widget with a picture in Attributes Form

I would like a Qmlwidget in the Attributes Form to show a picture. So far I have created the basic qml for a blue rectangle: import QtQuick 2.0 Rectangle { width: 100 height: 100 color: "...
0
votes
1answer
65 views

Assign layer style from qml file

I am adding a number of spatial csv files as layers and want to assign a qml layer style. import processing # User Dialog to pick Import_QGIS folder Folder_Path = QFileDialog.getExistingDirectory(...
1
vote
2answers
292 views

QGIS 3.4, how to add .qml style to sink in processing

How can I import a .qml style from a file and apply it to a sink? In QGIS 2.18, I used something like that script: output=QgsVectorLayer ('Point?crs=EPSG:2154','output', 'memory') path_style='./...
4
votes
1answer
262 views

Batch convert of viewer styles from QML to SLD

Until now I was saving styles in QML files. Now I need them in SLD to be used in GeoServer. Is there a way how to perform a batch convert?
2
votes
0answers
652 views

Batch converting .lyr to .qml?

I am looking for ways to make .lyr files usable in QGIS. It appears that they can be converted into an .sld file in ArcMap but according to one of the posts, they only store symbology and do not point ...
5
votes
0answers
271 views

Old .qml style (vector-polygons) from QGIS 2.18 in QGIS 3.4

I have a .qml polygon style file created with QGIS 2.18. It works to import until Version 3.2 without problem. But in 3.4 the style is loaded, but not applied/visualized. The Polygons dissappear ...
1
vote
0answers
201 views

How to set default QML styles in QGIS?

I need to analyze multiple GPX files with QGIS. My workflow so far is as follows: Add an OSM tile layer to serve as a map background. Import the GPX file as a vector layer, select the routes and ...
0
votes
2answers
4k views

Importing QML styles into QGIS

I have spent the day attempting this to no avail...I am a bit of a newbie to QGIS, but please help! I am trying to import the files at the bottom of: https://www.fscbiodiversity.uk/?q=...
2
votes
1answer
106 views

Defining no data in qml style file or python for QGIS

I am attempting to script a process that I undertake quite frequently, and have got everything working apart from one little step. Essentially I want to convert a singleband raster into a 3 band ...
1
vote
1answer
147 views

Automatically apply blending mode to raster

Currently using QGIS 2.18.24, but tested this on 2.14.18 as well. I'm trying to load a QML file for a raster with a specific blending mode ('multiply'), however QGIS only applies it until I click '...
2
votes
2answers
1k views

Problem with style file (.qml) loading in QGIS 3.2

I am trying to load a .qml style file to CORINE land cover maps, but the application generates an automatic color ramp. Dataset:http://geoforall.hu/sites/default/files/geodata/clc-series_hun.zip ...
14
votes
1answer
440 views

Creating a 'brick wall' style for polygons

I am trying to create a brick wall style for a vector polygon in QGIS 2 and 3. I can render a svg drawing of a brick wall with SVG fill (image below). But I do not want to use SVG since the style is ...
11
votes
2answers
1k views

QGIS Load Multiple styles on single layer at once

I have a set of qml style files saved that I apply to similar layers across multiple projects. An example would be a linetype shapefile layer with about a dozen different styles; currently I have to ...
3
votes
1answer
242 views

Proper assignment of QML legend to raster failed in QGIS 3.0.1

I downloaded raster data sets together with the legend qml files from the SoilGrids page (ftp://ftp.soilgrids.org/). Assignment of the qml legend (TAXOUSDA_1km/TAXN_WRB_1km) didn't work in QGIS 3, as ...
2
votes
0answers
52 views

Linked styles between .QGS projects

Is there a way to share (linked) a style form one project into other projects so that if I change the style in the "source" project, it's updated in the destination projects? QLR would be great if it ...
1
vote
1answer
1k views

Opening QML file in ArcGIS Desktop?

I have been trying to open a map which I downloaded from the ESA website. There are several files in the folder including .cpd, .csv, .dsr, .qml, .tif and so on. I was trying to open the .tif image ...
1
vote
0answers
72 views

Order of QML entries

In my styling file I have a value map with a certain order. But whenever I load it to QGIS the order changes. For example in my styling file I defined this. <edittype widgetv2type="ValueMap" name="...
3
votes
1answer
1k views

Load and convert .txt file to .qml for raster color map

I have a "QGIS Generated Color Map Export File" in .txt format. I'm trying to load it using QGIS 2.18 but the only file extension QGIS will accept is .qml file format. This question relates what I'm ...
1
vote
0answers
45 views

Ordnance Survey Northern Ireland OSNI .qml file for large scale vector data?

I am a new QGIS user, having moved across from Arc. I have access to OSNI (Ordnance Survey Northern Ireland) data and to .lyr files associated with them, but has anyone created a .qml file for the ...
2
votes
1answer
345 views

QGIS 2.18 - How to reference a svg symbol which is in the qml file's directory?

Relative path for svg symbols in .qml files works as expected if the svg file is in another directory than the .qml file's. Example : <prop k="name" v="../icons/symbol.svg"/> However, if the ...
7
votes
2answers
1k views

Converting ArcGIS raster colormap file (*.clr) to QGIS style file (*.qml)

I have an ArcGIS colormap (*.clr) and I want to open it in QGIS to apply a predefined style. The *.clr file is really simple, only has four columns representing [value] [red] [green] [blue], as this ...
2
votes
0answers
53 views

line_width from qml file not considered in my final output

I'm building a standalone pyQGIS script which creates a PNG from a Shapefile. During the creation process, I apply a style defined in a qml file (saved from QGIS). Below is an extract of the qml files ...
1
vote
0answers
371 views

QGIS - Automatically apply QML styles to Vector Layers within a VRT

I have created a VRT file that contains two vector files, one being made up of polygons, the other one points. My VRT file is as follows: <OGRVRTDataSource> <OGRVRTUnionLayer name="test"&...
1
vote
0answers
167 views

Is it possible to change widgets in QGIS when opening style-file with Python

When loading a QGIS-project using a Python-file and having the same name on both shp- and qml-file, just the symbology and labels are according to the style-file, but not the widgets. I have tried 2 ...
4
votes
1answer
557 views

Styling OS maps in QGIS 2.18 with QML

I'm trying to apply the OS QML (Full Colour) styles to OS Vector Map District shapefiles in QGIS 2.18.0 . Mostly, it works OK sometimes but I am having problems styling the roads. Roads are styled ...
0
votes
0answers
527 views

QGIS: Editing .qml files

I tried to follow these intructions on creating google-styled maps from osm-data. I have the SpatialLite data in QGIS (2.18) and now tried to load the styles provided by Anita. I open the properties ...
3
votes
0answers
185 views

QGIS categorised layer style import

Is there a way of importing categorised layer styles into style-manager? I have created a set of styles for certain layers based on attribute data, but am having to go via properties>styles>load style>...
3
votes
0answers
267 views

Adding multiple styles to single layer with pyQGIS? [closed]

On QGIS, I would like to programmatically assign multiple .qml styles to a single layer with python. I can add styles manually from the Properties dialog on the layer by selecting Styles->Add... ...
3
votes
1answer
309 views

Importing large OpenStreetMap database into QGIS?

I've got a large .osm file I'd like to load into QGIS and stylise with some QML files I downloaded from the web (https://github.com/anitagraser/QGIS-resources/blob/master/qgis2/osm_spatialite). The ...
9
votes
1answer
3k views

Loading style (*.qml file) to layer via PyQGIS?

Is there any way to load a *.qml file to layer and set a style to it in python (pyqgis)? Can I 'get into' this file in console? I want to review it.
1
vote
1answer
283 views

How to combine two QML files?

I am making a plugin. I have two QML files for the same layer and column. I want the plugin to combine the two existing files into a new QML file and then I will select which one symbol for each value ...
3
votes
2answers
873 views

Assign predefined legend style to raster layer via qml in QGIS [closed]

I work with rasterized extracts of CORINE data (V 18.5 gdb) in QGis. My layers however are not depicted in the colours that are standard for CORINE, but in different shades of red. From EEA i ...
1
vote
1answer
1k views

qml (or other) style for QGIS

I have to create a map which is near at the MapQuest style, but for some reason I can't use a Lyer plugin, so I'd like to build the "Background" with files from geofabrik. Are there qml styles (or ...
1
vote
0answers
75 views

What is the default directory for qml-files in QGIS?

I'm using QGIS 2.14.1 on Windows.
5
votes
1answer
453 views

How to save qml style including function in QGIS?

I made a style which needs function to work. In my particular case it is calculating azimuth between nodes of rectangles to display "direction". The problem is, if I save the style, the function is ...
6
votes
1answer
1k views

Export .qml file using QGIS API

Im loading a shapefile using the method QgsVectorLayer() and adding a style to it using the method loadSldStyle() and the path to the sld file. So far so good. What I want now is to export that style ...
2
votes
0answers
1k views

Converting from QML to SLD on the command line

We have the problem of automating the conversion of MapInfo TAB styles to SLD. I've managed to achieve the first part of the process (TAB -> QML) using this tool: https://github.com/NathanW2/MapInfo-...
2
votes
1answer
389 views

Is it possible to edit layer transparency in .sld or .qml file for use in QGIS?

Say I have a shapefile with 20 graduated classes that I'm using in QGIS. I want to save the layer style so that I can use it on other shapefiles, but I can't edit the layer transparency without ...
2
votes
0answers
563 views

OS Master Map Styling in QGIS using QML/SLD

I am trying to apply stylesheet that I downloaded in qml format from GitHub of Ordnance Survey https://github.com/OrdnanceSurvey/OS-VectorMap-District-stylesheets/tree/master/GML%20stylesheets ...
2
votes
0answers
245 views

PyQIS add values to QGIS qml style file

I wonder if it is possible to add new styles to a QGIS style qml file with categorized values programmatically. I have for example a large qml style file and want to add a new definition for ...
1
vote
1answer
870 views

Style Sheets: Setting up a style sheet to change only styles, no other fields

I'm trying to create style sheets for my projects. I only wish to change the Style, without affecting labelling or the Fields. And I can't, for the life of me, get it to work. I'm using .qml files and ...
2
votes
2answers
2k views

How to save and load vector layer attribute value map, editable state in .qml style file?

I just upgraded to Qgis 2.4 and there were problems with style file: When I load style file for Qgis <= 2.2, the color of features is right but when I edit them, the value map (value - description ...