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 [style]

An organized collection of predefined colors, symbols, properties of symbols, and map elements.

0
votes
2answers
11 views

GeoServer SLD subquery in WHERE clause

I have this SQL request select name from osm_places where name in (select capital_city from osm_places where capital_city != '') Is it possible to write such a request in < ogc:Filter> section? ...
-1
votes
0answers
12 views

Same layer with multiple user-defined styles [on hold]

I am considering using GeoServer with OpenLayers and I would like to understand if the following is possible. I have a PostGIS table with features that I would like to turn into a geoserver layer. ...
1
vote
0answers
29 views

What style has been applied to a QGIS layer?

QGIS 3.4 - I have several different saved styles which I can assign to a particular layer depending on what I wish to emphasise at the time. For example, for a Roads layer I might want to show roads ...
2
votes
0answers
39 views

QGIS Rule-Based Labeling - Toggle child rules visibilty

So it works to add labels by dragging it to another label, like it does in styles. But if I try to hide this upper filter, the contained labels won't hide. Is this a bug, or is it not wanted, to set ...
2
votes
0answers
26 views

OpenLayers: change cursor upon hovering over feature

I want to change the mouse cursor to a pointer when the mouse is hovering over a feature. I currently have the following: this.map.on('pointermove', evt => { if (!evt.dragging) { this.map....
1
vote
0answers
34 views

Modifying style (line width/color) of vector layer in PyQGIS?

I'm currently updating some python code from QGIS 2.18 to QGIS 3.4 in 2.18 i used the following code : #First off I created a virtual layer using an sql query here vlayer = QgsVectorLayer( "?query=....
1
vote
1answer
43 views

In OpenLayers how do I prevent linestrings and polygons disappearing as I zoom out?

I can see how to do this using a feature style function with 2 styles (similar to the Custom Polygon Styles example). One would be the normal linestring/polygon one and used at high enough zooms. The ...
0
votes
1answer
30 views

How to properly import corine landcover 2012 (vector file) in QGIS?

I'm fairly new to QGIS (using version 2.18.25), so I may be missing something quite basic. I'm using the Corine landcover (clc12_Version_18_5.gdb) in my project. It's a very large dataset (3GB) so it ...
0
votes
0answers
41 views

QGIS 3.4.4 Issue when manually modifying values in graduated style

In Win10, QGIS 3.4.4. In a polygon layer, I go to properties->Style->Graduated->classify, and I want to manually modify values for each symbol displayed. But once I modify values manually and click "...
0
votes
1answer
28 views

How can I add dynamic text/properties to a GeoJSON multipoint on each individual feature?

I'm drawing circles on a map based on lon/lat. These circles are drawn from "subarrays" in an array, e.g: myArray = [[array(18)]],[array(111)], [array(65)]....] I map each of these arrays using ...
1
vote
1answer
34 views

Text on line within a line style QGIS 3

I'd like to create a line style in QGIS 3.4 where short text is written on the line. I am able to create a symbol layer in the line style, as a character symbol, but here only a single character is ...
3
votes
2answers
75 views

Geometry Generator - Line pattern fill to a buffer of x metres

I have an image below to help illustrate the style I'm trying to apply to my polygon. I have an idea of what I need to type in the geometry generator but can't get it to work. Something along the line ...
2
votes
1answer
45 views

Styling rubberbands using PyQGIS?

I would like to add an on-map drawing function in my stand alone app, so I used QgsRubberBand to make it. I made a tool that emits points and then draw the QgsRubberBand. The problem is I don't find ...
1
vote
0answers
53 views

Rule-Based Styling not working in QGIS?

I'm trying to create a shapefile I can use as a template for a breeding bird survey. The basic gist was that each species has a two letter code and a colour depending on the BTO listing. Each bird is ...
0
votes
1answer
19 views

GeoServer - WMS v WFS (polygon label issue)

I am hoping that when I switch over to WFS that my multi-polygon labelling issue will disappear. Currently I am using WMS, and I believe the reason I am seeing multiple labels within my polygons is ...
0
votes
2answers
43 views

How to style 2 columns with 900 combinations without resorting to rule based in QGIS?

So I have this point layer that has 2 columns that I need styled, one of which is owner_id and the other is size. Both are integer fields if it matters. The owner_id matches with an owner name in ...
0
votes
1answer
15 views

Converting DWG to GDB and maintaining style with Data Interoperability in ArcGIS Pro?

I am attempting to Convert a DWG to a geodatabase for online publishing and use in collector. The conversion itself is fine, however I am also attempting to maintain style, i.e. annotation, colour, ...
2
votes
1answer
115 views

Problem with GeoServer modifying a style when uploading an SLD via the REST API

I have an SLD called my_data.sld (created in QGIS 3.2.x) with looks like this: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:xlink="...
1
vote
0answers
39 views

Converting zoom level rule-based styles to mbtiles?

In QGIS I have made a zoom level rule-based style (.qml) with OpenStreetMap data stored locally for a specific area. Is it possible that I convert these styles (or the project) as mbtiles so that I ...
2
votes
1answer
64 views

Using graduate and categorize in QGIS?

I'm using a .csv detailing types of renewable energy in the UK. I want to display them as different colours for the types of energy (e.g. wind, solar, gas etc.) but also a different size symbol based ...
1
vote
1answer
35 views

Two adjoining lines becomes clearer than two individual

When having an outline style where the two edges interfere, they become much more dense in the color than when they are individual, see image below. It is an outline of a polygon. The thing is that ...
2
votes
0answers
30 views

Unexpected behavior of collect() in geometry generator

I'm having unexpected results using geometry generator with the following expression: buffer(collect($geometry),0) …which was an answer given in this topic. I have used this previously with the ...
2
votes
1answer
36 views

How to make dynamic labeling in a project for new features on QGIS?

So let's say I have an integer id column that users regularly add features to. mytable1 has 500 features and growing. When doing a categorized view on these, I'll get 500 different colors for all ...
1
vote
1answer
35 views

How to filter style to display only where data in one column in the attribute table is not the same as the data in another column

I have a .shp with attribute data containing current zone, current code, proposed zone, proposed code, final zone, final code etc. I want to duplicate this layer and style it to display a black ...
0
votes
2answers
87 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=...
4
votes
1answer
65 views

Store human readable layer name in QGIS style files?

QGIS 2 and 3 as well seem not to store the Layer name (set via Layer Properties | Source | Settings | Layer name or via 'Rename' in the layers context menu) in styles files. I.e. if i have a PostGIS ...
2
votes
0answers
31 views

Adjusting the admin_level of countries in osm-bright style?

I'm using OSM Bright style Unfortunately, this style favours more admin_level=3 countries than admin_level=2, for instance, on the map below, Transnistria is labelled instead of Moldavia. How to ...
1
vote
0answers
35 views

Saving QML styles directly into QGS project file

I have a QGIS Model (saved in directly in QGIS 3 project file ".qgs") which creates some layers and assign predefined styles to them. I would like to save those QML styles into my .qgs and reference ...
1
vote
1answer
32 views

GeoServer error on styling line width relative to zoom level

I've applied MBstyle (gs-mbstyle-2.13.2, gt-mbstyle-19.3) extension for GeoServer (2.13.2) to style layers in mvt format. It works fine for simple styling but the problem occurs when I want to set the ...
1
vote
1answer
26 views

Selecting Specific Entities to Style Separately from the Same Layer in QGIS 3.2.4

I downloaded the roads of Rome from OSM and save them as a single Shapefile. To style specific entities from the "highway" column I categorized this column in the layer styling panel. Now I got all ...
1
vote
1answer
24 views

Geoserver 2.14.0 CSS styling - how to force label rendering similar to VendorOption “partials”

I know that the <VendorOption name="partials">true</VendorOption> SLD directive would fix my issue with labels not rendering in my tiles when I want them to and I would add to my SLD ...
1
vote
0answers
37 views

Transfering color style from one raster to other rasters using QGIS?

I have a raster set and I need to classify them using the "pseudo color singleband" with "RdYlGn". What I'm trying to do is classify a raster and copy the style to the others, but it does not work ...
1
vote
3answers
90 views

Getting the layer styles out of a *.QGS without having the layers itselves

Is it possible, to restore the layer-styles from a *.QGS project file? I have unhandled layers in my project. As I'm starting the project, QGIS is asking me for the source of the layers but I don't ...
4
votes
4answers
359 views

Importing KML styles into QGIS

Can I import a KML file with styles to QGIS 3? (As of now version 3.4.1) I have a .kml file with cycling routes that have a different color for the time between sunset and sunrise. When I import the ...
1
vote
0answers
20 views

Curved labels with data defined coordinates in QGIS

My goal: I want to have curved labels placed in the center of a linestring. I define the label position with the expression x: $x_at( num_points( $geometry)/2) y: $y_at( num_points( $geometry)/2) to ...
2
votes
0answers
30 views

Adding customized basemap ArcGIS vector tile to QGIS

I customized a basemap through the platform ArcGIS Vector Tile Style Editor (beta) and I would like to share it and use it also with other software like qgis. I am using this link: https://www.arcgis....
1
vote
1answer
27 views

Duplicate entry in layer_styles table with PyQGIS

I would like to duplicate an entry in QGIS (2.18.21) layer_styles table (in a PostGIS database) by the following steps: From a PostGIS connection with styles saved to database add layer_styles table ...
1
vote
0answers
36 views

Dynamic colouring of SVG-icons in OpenLayers 2

I've got an OpenLayers 2 map with a lot of point features that need to be represented using a number of different SVG-symbols. Unfortunately, the marker icons need to be displayed in different ...
1
vote
1answer
57 views

Why do symbol categories disappear when unchecked in QGIS?

I am using Qgis 2.18.25 In a vector layer, when using the categorized style, when I uncheck a category the category disappears. Is there any way to avoid this behavior? Actually I do not really ...
2
votes
2answers
131 views

How to create a rule on QGIS to show only features that have last week as date?

Basically I have a PostGIS layer with a date column. I only need to show features that have the last week as a value in the date column. How to achieve this? Unfortunately now() - 1 week doesn't ...
2
votes
2answers
54 views

Custom color palettes not visible to other layers?

Full-disclosure: fairly new to QGIS (v3.4), and I am currently styling a map for presentation. I'm trying to match colors within data contained on a layer using "Categorized" styling, so that I can ...
1
vote
2answers
45 views

CARTO not styling 36 total representatives

I'm extremely new to CARTO and I'm still learning the ropes. I currently have this territory map where the colors represent a representative in a county. However, it isn't shading the 36 total ...
0
votes
1answer
51 views

How can I use SVG icons controlled over variable order attribute field?

I have about 200 different point categories. I want to order all these categories with one background SVG and one for the front. One solution is to categorize the points depending on one attribute ...
0
votes
1answer
28 views

Using .style imported into ArcMap?

I have been handed a .style file by a coworker so that we consistently use similar color schemes. After downloading it, I went into Customize >>> Style manager >>> Styles... >>> Add style to list. ...
2
votes
1answer
43 views

Saving all symbols to style using ArcPy? [closed]

It is possible to save custom symbology to a style file within the Format Symbol pane, but is there an ArcPy command to save symbology to a style file? I have rich symbology which needs to be ...
1
vote
1answer
36 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 '...
4
votes
2answers
100 views

Custom scalebar with half-segments in QGIS

I am trying to recreate a scalebar thats part of a norwegian standard (NS3039) in QGIS. QGIS makes these half-segments for negative values (highlighted in red in the picture below 1, but I want ...
4
votes
1answer
95 views

Styling polygon layer with symbols that indicates value of attribute of polygon?

I want the same thing, but the number of dollars shown should indicate the value of the attribute of the polygon. For example one polygon may have 2 dollar icons indicating 200 (value of an attribute, ...
0
votes
1answer
219 views

Openlayers 5 change kml style for icon only

I'm importing KML into my map where it has some point placemarks with images that are WAY too big. What is the best way to import KML in the map, and just change 1 aspect of the style ( https://...
1
vote
0answers
42 views

How to differentiate between features and labels for select interaction and applying styles in OpenLayers?

I am using a style function to style a vector layer with text labels. For the text style I have set overflow to true so that labels can exceed the dimensions of a polygon. I now want to use another ...