Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [qml]

an XML file used to define a QGIS layer style.

1
vote
0answers
25 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
17 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 '...
0
votes
0answers
28 views

QGIS: QML-reader

We have a bunch of QGIS-layerstyles created over the years. Now we want to clean them up. I know you can 'read' the style in eg. notepad++, but it gives you not a good picture of it. So I am ...
1
vote
1answer
167 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 In ...
12
votes
1answer
211 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 ...
8
votes
2answers
239 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 ...
0
votes
0answers
39 views

programmatically build .qgs project file; apply .qml style file to map elements

I'm trying to programmatically build .qgs files and add styles with .qml files I saved from my template project. For some reason, when I open the new .qgs file, the styles haven't been applied. I'd ...
0
votes
0answers
19 views

Editing existing AppStudio templates

I'm new to AppStudio and I really would like to work from one of their provided templates. I created a very basic app using one of the standard templates, but I do need to change a few things within ...
3
votes
1answer
86 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
40 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
344 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
361 views

Writing a custom Qt Location GeoServices plugin to use georeferenced image file as map source [closed]

I'm currently working on a Qt Quick application that will provide a map viewer for a smallish area (1 square KM or so), the map details for which will be provided in a single georeferenced image file (...
1
vote
0answers
58 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
504 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
27 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
205 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
667 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
41 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
259 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
103 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
391 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
331 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
124 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>...
0
votes
0answers
261 views

Importing QML styles into Style Manager

I am very new to QGIS without programming skills and I am attempting to import Phase 1 Habitat mapping styles already in QML into QGIS (2.18) using the following method SETTINGS > STYLE MANAGER > ...
3
votes
0answers
192 views

Adding multiple styles to single layer with pyQGIS?

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
203 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 ...
6
votes
1answer
2k 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
186 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
506 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
921 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
66 views

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

I'm using QGIS 2.14.1 on Windows.
5
votes
1answer
387 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
882 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
865 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
271 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
476 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
203 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
671 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 ...
1
vote
0answers
93 views

Problem – QGIS 2.2 - Values under Color Rendering saved in style not applied when applying the loaded style?

I have saved two variants of the same color-scheme by putting in different values under “color rendering” in the lower part of the screen. It’s a singleband pseudocolor scheme. Now when I load each ...
23
votes
2answers
14k views

Is there a good qml or sld file available for QGIS + Openstreetmap data?

I'm looking for a qml file (or equivalent e.g. sld) to allow me to use QGIS to take Openstreetmap data and produce paper maps. I'm re-asking this question (it was asked once or twice over a couple of ...
2
votes
1answer
1k views

Different ways of saving color ramps in QGIS (xml, qml, csv), which should I use?

I started to use QGIS for personal mapping as a hobby (specially for planning bike routes), and I notice there are more than one way to use color ramps. There are styles, which can be saved and ...
9
votes
3answers
12k views

Converting/using ArcGIS *.style file for/in QGIS (QML or SLD)?

I have downloaded a dataset from a government organisation. it comes with a .style file. I use QGIS 1.8 on windows 7. Is there a way to use the .style file as a qml or sld? I have tried simply ...
2
votes
1answer
1k views

Is it possible to convert QGIS QLM to SLD (w/ New Symbology)?

I have a QGIS project where I have created some nice styles using New Symbology. I would like to convert this to either SLD for use in GeoServer or CartoCSS for use in TileMill. I have tried saving ...
3
votes
3answers
4k views

Data-defined Styles in QGIS

I have downloaded a shapefile of bedrock geology. I need it to be displayed as it should be with the style applied. The supplier will no give me a qml. but i have noticed in the .dbf file the Cyan ...
2
votes
1answer
3k views

Converting AVL to SLD or QML file

Is there a simple way to convert an AVL file into an SLD or QML file? deegree does not work an my laptop (Java problems) Or is there a way to open the original AVL file in QGIS?
1
vote
2answers
453 views

Multiple labels in QGIS QML

I've a GML file from the Ordinance Survey which includes a Cartographic Text layer which I'd like to load and render in QGIS. The layer has attributes which are intended to be use for the font size, ...
1
vote
1answer
648 views

Where is the default QGIS Point layer style .qml file installed in Win 32?

Where is the default QGIS Point layer style .qml file installed in a Windows 32 bit installation? I have done a search on *.qml and can only find four python plugins styles.
7
votes
1answer
878 views

Migrating SVG-based styles for QGIS to other computers?

I'm working on a project that has involved creating many recolourable SVG icons and bringing them into QGIS. These are then used in layer symbologies, with these subsequent layer styles exported as ....
4
votes
2answers
816 views

Looking for QML specification

Where I can find the QML specification which is used for storing symbology information in QGIS? I tried to Google it - but got no result.