Hot answers tagged

6

Simplest way is to style the line. Add a new symbol layer to your line and change the 'Symbol Layer Type' to marker line. Select 'Marker' in the style tree and select a triangle as your default marker symbol. I believe 'triangle 2' is your best bet. Accept these changes and all your lines will now have arrow showing the direction of the line. You can mess ...


5

Select your symbols by either clicking them individually whilst holding Ctrl or click the uppermost symbol, hold Shift and click the last symbol you want selected. Then go to Symbol > Change: Then select your fill and set the border style: When you click OK, the selected symbols should be updated with the new border properties: EDIT: To keep ...


4

Set your border color to the same color as your fill. With QGIS 2.14 if you are creating a categorized/graduated symbology you can even set up a data defined override of: @symbol_color Which will automatically assign the same color to the border as the fill. You can set this up as a data defined override:


3

Kludgy method: Suppose your residuals go from -1 to +2 (use the "Statist" plugin to get the range of your attribute) Create a dummy point (or other geometry) with residual -2. Style as normal with an odd number of categories, white in the middle. Make your dummy point invisible with some other style rule, or maybe delete it (but don't reclassify!). Or ...


3

According to the OSGeo.org forum, the styles are saved in your .qgis2 directory as an sqlite db file: .qgis2/symbology-ng-style.db Initially it was saved as an .xml file but this is no longer the case.


3

This is a bit of python that does the trick. That layer-renderer-symbol-symbollayer thing is a bit weird at first sight, but ok. from PyQt4.QtGui import QColor r = iface.activeLayer().rendererV2() for s in r.symbols(): s.symbolLayers()[0].setOutlineColor(QColor('#ffff00')) iface.mapCanvas().refresh() Just tested this on the console and it works for ...


2

Your styles are going to be stored in a .style file in a directory similar to this: C:\Users\<username>\AppData\Roaming\ESRI\Desktop10.X\ArcMap So what you will want to do is go there and find your <username>.style file and copy it somewhere like your desktop. Then, after you upgrade you can replace the style file in the newly created ...


2

Searching for "QGIS Style" on github.com reveals a few repos with some style files in. The best of all these is probably Anita Graser's styles and related blog post: https://anitagraser.com/2014/05/31/a-guide-to-googlemaps-like-maps-with-osm-in-qgis/


2

The general logic for setting border color is: # black polygon with red border symbol = QgsSymbolV2.defaultSymbol(layer.geometryType()) layer_style = {} layer_style['color'] = '0, 0, 0' layer_style['size'] = '2.5' layer_style['color_border'] = '255, 0, 0' symbol_layer = QgsSimpleFillSymbolLayerV2.create(layer_style)


1

You can assign a graduated color ramp to a layer in QGIS by choosing it under Layer Properties > Style. Here you can choose a given color ramp with three colors and set the offset of the middle color according to your dataset by editing the color ramp. Now you only have to set the number of classes and it classifies your data automatically. If this doesn't ...


1

Go into Studio > click on a layer > Select Data. You can see on the screenshot below that you can set zoom min/max per layer.


1

This is done in the Leaflet code by using the cursor CSS property, see https://github.com/Leaflet/Leaflet/blob/master/dist/leaflet.css#L193


1

I export the SLD from QGIS 2.2 and I am running Geoserver 2.6. For the export from QGIS to work, I change the se:SvgParameter into sld:CssParameter. Generally using SDL 1.0 instead of 1.1.0 prove to simplify some of the issues of transferring the symbology form QGIS to Geoserver in my case. But this will depend on the versions of the software you have. ...


1

look closely, and you'll see the problem, hiding in plain sight... <!--Parser Error: syntax error, unexpected COLUMN_REF, expecting $end - Expression was: Land use 2 = 'Residential buldings'--> I suspect you'll need to edit the SLD to rename the field name, e.g. "land_use_2". How you do this depends on the format you're importing from (shapefile, ...


1

TLDR; in general use the org.geotools imports if you are working solely with GeoTools code. As is documented in the OpenGIS FAQ GeoTools once upon a time had idealistic developers who thought the world would be a better place if the "Java GIS Tribe" could share code more easily. So they built a set of interfaces that people implementing various OGC and ISO ...


1

Question can be closed, I detected the problem myself, registered that somewhere in my code i assigned new numerical values to the raster cells that are identical with the corine codes. The original data and the qml however are based on values fron 1 to 45 instead of the land cover class codes such as 111, 112... I just had to change the numbers in the qml ...


1

I cannot reproduce your issue here, loading the .qml from the page you linked styles the 250m raster as expected:



Only top voted, non community-wiki answers of a minimum length are eligible