Stack Exchange Network

Stack Exchange network consists of 175 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.

1
vote
1answer
32 views

Load ASCII rasters in QGIS as singleband pseudocolor by default

I'm loading over 400 ASCII rasters into QGIS. They all get displayed as 'singleband grey' by default. Is there a way to change the style to 'singleband pseudocolor' by default? I also want to set the ...
1
vote
2answers
47 views

QGIS 3 how to customize line dash symbology

I want to keep the same line width but specify a much longer dash. The symbology controls in QGIS 3 have changed significantly from 2.X, so the many answers re: line symbology control for QGIS 2.X ...
2
votes
1answer
39 views

Copy the layer_styles table from one database to another?

I am trying to copy the layer_styles table to another database. A quick and painless process is preferred, to make the movement of the layer_styles tables easy to repeat in the future. I have tried ...
1
vote
0answers
36 views

Visualizing part of the attribute table in QGIS

I have a shapefile with a long attribute table made of different columns. Some columns have several levels (es. "Year": 2009, 2010, 2011,... or "Season": autumn, spring, summer, winter) and other ...
2
votes
1answer
52 views

Nested rules in QGIS 2.18

I work with QGIS 2.18. I have a polygon shapefile with two atrributes: id (unique for each polygon) and type. I visualize the shapefile using the "type" attribute, but I would like to add a nested ...
0
votes
0answers
25 views

QGIS Styles: How do I save rendering preferences in a style for future automation?

The following is in regard to a point layer in QGIS 3. Under Layer properties > Rendering > 'Refresh layer at interval (seconds)' I have set the interval to refresh every one second. The point ...
1
vote
1answer
30 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='./...
0
votes
1answer
46 views

How to change the color of GeoJSON layer?

I want to show my road network in red color. How can I change this default color of the road network. Where should I attach style property? var roadNetwork = new L.LayerGroup(); $.getJSON("{% url '...
0
votes
1answer
25 views

GeoServer - Render style of points based on URLs saved in a field of the table using YSLD

I am new to styling in GeoServer and was wondering if there is a way to style points in a table based on the external URLs defined in one of the fields in that table. Let's say I have a table in ...
0
votes
0answers
6 views

Style data getting lost while importing KML using ogr2ogr

I am trying to import the KML data generated from Google Earth into PostGIS using gdal(ogr2ogr). <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="...
0
votes
2answers
20 views

Adding GeoJSON tile set to an existing map

I'm confused on how to add my GeoJSON tileset to an existing map built with a default style. Do I add the GeoJSON by ID or by style? Here is what I'm working with now.l Added .geojson to Tilesets as ...
1
vote
1answer
56 views

Maintaining Borders when Merging shapefiles?

I am trying to merge two layers of a map which includes the state and county levels. I was able to edit the borders to look how I want, but when I merge them I am struggling to keep the style ...
1
vote
0answers
14 views

vectortiles: change style of basemap instead of data

I'm using Mapbox-GL-Leaflet bindings on Leaflet to style my vector tiles. I'd now allow the user to switch a style using Leaflet control. The easiest way would be to use LayerControl for this. Since ...
0
votes
0answers
34 views

QGIS road style appears blocky, I want it to appear continuous. Is there a style merge function or something similar? [duplicate]

If you look closely and see the main roads, they break down into blocks [][][][]. I was wondering in QGIS how can I have them appear continuous and not blocked up as shown below. This is one file ...
1
vote
1answer
39 views

Missing values for Choropleth Map in QGIS

I am creating a Poverty Choropleth from a vector file using polygons to represent each county in the United States. I joined the poverty Excel file with a text file to convert the poverty column from ...
0
votes
1answer
21 views

GeoServer Point Labels not rendering until Scale = 1 : 545K

I have a series of points that I have reading an attribute to display a label. I don't see the labels on my map until Scale = 1 : 1M when SOME of them start to show up. But it's not until I hit Scale =...
2
votes
0answers
33 views

Save QGIS style created with espression string builder

I created a rule-based renderer with espression string builder, where I also use the function editor in Python. When I share the style (qml) file with others, I realized that the Python function I ...
4
votes
1answer
78 views

Styling rendered mbtiles in offline web-map service

I am building a digital cartography tool that needs to run completely offline. As a basis, I downloaded a .mbtiles-file corresponding to the area I want to survey and I am running the excellent ...
0
votes
1answer
24 views

How to create “wave styled” lines in geoserver SLD style?

I nees to stylize lines with a style like the image below: as seen in nautical charts. Already read the "geoserver cookbook" but can't found anything useful.
1
vote
1answer
35 views

How do I apply a unique colour for each row of data within a layer? (QGIS 2.18)

I was wondering how I would go about giving each row of data within a layer a unique colour, each row does have a unique ID but I can't figure out how to use this to achieve what I'm after without ...
1
vote
1answer
49 views

Create categorized rendered from styles in QGIS 3.4.3

How does this tool work? I've been trying to use it but it needs xml file and I dont know how to create one and running the tool without inputting a style database returns a single colorised map Is ...
2
votes
1answer
60 views

Reproject Layer without losing Layer Style

I'm trying to reproject several layers via batch process from one CRS to another. In QGIS 3.6 it seems to work but when I reproject all my layers the layer style gets lost. Every layer has a different ...
2
votes
1answer
35 views

Polygon fill outside of stroke in print composer

For some reason the polygon fill is outside of the stroke in QGIS print composer. My stroke width is set to 0.18 which I would like to keep constant. Is there anyway to fix so that the stroke goes on ...
1
vote
2answers
43 views

Openlayers squeezes placemarks after changing map projection

I have a map with OSM as a base layers and several layers on top of that. Two layers (red polygons with gray fill and black placemarks) are instances of TileLayer (source TileWMS -> geoserver). Both ...
1
vote
1answer
42 views

How to fix layer styling in OpenLayers 5?

I'm trying to draw a new layer every time user clicks on the map. My styling function can be seen below; function CatchmentLayerStyleFunction(feature) { var colors = ['rgba(255,0,0,0.5)', 'rgba(...
0
votes
2answers
30 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
vote
0answers
36 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
57 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
101 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
85 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
60 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
77 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
53 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
29 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
69 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
143 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
53 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
75 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
28 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
44 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
27 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
143 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
54 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
108 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
38 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
38 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
37 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
40 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
335 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
67 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 ...