New answers tagged

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 ...


0

There are several approaches to realize this as Mike already posted. Making a copy of the MXD or the layer files is a very good and pragmatic approach. Depending on the number of different symbologies it could get confusing very fast. Alternativly there exists the ESRI technology of representations to store different symbologies. The symbology here is ...


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 ...


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


0

http://desktop.arcgis.com/en/arcmap/10.3/map/styles-and-symbols/working-with-color-ramps.htm Using the above link and the colour picker in Photoshop to obtain the high and low colour RGB values, I was able to achieve the style of DEM that I posted.


0

Active faults are generally represented with a continuous line. You could use different colours for the active and inactive faults but the same linetype (e.g. continuous red line for active and continuous black line for inactive). Also fault extensions or possible faults are represented with a dashed line. In the case that you want to create a greyscale map ...


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 ...


0

I was able to get in contact with the author of the .mxd and got the symbols as .png files, problem solved.


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 ...


0

Try this (untested) snippet on a layer. if lyr.symbologyType = 'UNIQUE_VALUES': field = lyr.symbology.valueField freqTable = arcpy.Frequency_analysis(lyr.dataSource,"tempTable", field) freq = arcpy.da.TableToNumPyArray(freqTable ,field).tolist() vals= [val[0] for val in freq] lyr.symbology.classValues = vals


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 ...


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) ...


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 ...


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 ...


0

@GisPlanTechLab Select Landuse layer. Right click and select properties. Select the tab Symbology. Select Categories, then Unique values. Then with the drop down option for value field select for "Unique value." This should then list all your zoning types below in the box. Here you can then right-click on Commercial and select remove value(s). This should ...


0

Thanks a lot Midavolo! Unfortunately, I don't have access to the Water Utility Network Editing and Analysis toolbars (which as you say has a Rotation to Features tool that populates a ROTATION field with the orientation of a line, which you can then use to rotate your symbols for each point). However, you got me thinking that if a tool can read the direction ...


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. ...



Top 50 recent answers are included