Hot answers tagged

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

One way to create dual line symbols that reflect a field value is to use a Proportional Symbol. To set it up for a dual line proportional symbol first choose "Proportional symbols" under the Quantities category within the "Show:" group box. Set the "Value:" in the Fields group to your width field. Make sure the "Unit:" combobox is set to the correct ...


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

You need to modify the content of the SVG file and an answer was given in GIS SE (How to create svg symbols that have modifiable fill color, stroke color and stroke width?) and in Add and personalise SVG symbols in QGIS (in French, Portail SIG) Compare the "transport_bus_stop.svg" file where you can change the colors In the file, the <path contains ...


2

You cannot change a layer's Symbology Type in arcpy, you can only read it, hence the line in your code that says if lyr.symbologyType=="GRADUATED_SYMBOLS": - it's checking that the layer Symbology Type is already Graduated Symbols. Therefore you need to already have set your layer to be Graduated Symbols, or imported that symbology type from another layer. ...


2

This can be done in Qgis by using "rule based" symbology with two levels of settings. To safe you a bit of work you go to "symbology" - "categories" first and classify your data on the column qualifier that defines your shapes. But donĀ“t set any shapes yet, its just a work in progress step and will be dismissed in the end. Then you go to "rule based". You ...


2

after adding some print statements after each line I managed to work out that it's symbol.changeSymbolLayer(0, symbol_layer): bool QgsSymbolV2::changeSymbolLayer( int index, QgsSymbolLayerV2* layer ) { QgsSymbolLayerV2* oldLayer = mLayers.value( index ); if ( oldLayer == layer ) return false; if ( !layer || !layer->...


2

All the symbologies are saved in the symbology-ng-style db file found in the .qgis2 folder. You can send that file to any computer, and place it in the .qgis2 folder path and it should give you all the symbologies you've created


2

If you read the strReplace documentation you will see that it is a thin wrapper around the Java replace method and provides a link to the Pattern Rules. This means that your function: strReplace(iconPath,'.','/',true) will replace every character (a . matches any character) in iconPath with a / - clearly not what you want. I would try something like: $(...


1

The eye dropper tool works wonders if you don't know what the color is but want to figure it out. http://www.esri.com/esri-news/arcwatch/1214/finding-colors-on-maps-is-easy-using-the-eye-dropper-tool The trick in your case is that there is an underlying hillshade that is interacting with the colors. I'd pick a low elevation and a high elevation with ...


1

(Moved to answers for better formatting control) If they are picture markers then there will already be an image file for each marker. The path for the image will be shown on the 'Symbol Property Editor' dialogue box - you'll just have to find the image for each symbol in the legend. If you're symbols are characters or simple markers it's a whole ...


1

You appear to be trying to apply symbology to your layer file, not to the layer in your MXD. You may need to find the layer in your MXD and then apply symbology to that. addlayer = arcpy.mapping.Layer(layerfile) arcpy.mapping.AddLayer(dataFrame,addlayer,"BOTTOM") if indicator=="a": test=r"C:\Symbology\SymA.lyr" addSym = arcpy.mapping.Layer(test) ...



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