Tag Info

New answers tagged

0

I found an answer. I basically take everything I need into the colorkey function as follows. plot3 <- spplot(mymap, "percentage", col.regions = plotclr, at = round(class$brks, digits=1), colorkey = list(labels = list( labels = c("0%", "1%","2%","3%","4%","5%","6%","7%"), width = 2, cex = 2))) Width changes ...


0

You can define the labelling style using the label.style argument of lattice::contourplot. In my opinion, you should choose align. It is not a complete solution because it does not break the contour lines, but it is better than the default method. On the other hand you can overlay two different contour plots with different cuts, line widths, and labels ...


1

I don't know what could be the difference between console and plugin, I think it should to work either way. Also you try to replace layer.commitChanges() (which makes not sense there) with layer.triggerRepaint() and look if that helps (note it is not necessary to call mapCanvas.refresh()). You can also use custom properties for the layer to enable labeling, ...


1

Use dissolve to merge the county polygons to state polygons and label those. Vector | Geoprocessing tools | Dissolve


1

I'm using this approach wich makes the labeling and display of contourlines by condition quite easy. I use the "Data defined properties" of the line symbol width and colors of the contourlines with an expression (see screenshot 1) by which you can apply different line widths based on custom conditions and a similar expression for labeling (see screenshot ...


2

Use the "Coalesce" function. Coalesce takes the first non-null value from its arguments. So this expression should work: coalesce("Temp Site",'') || '\n' || coalesce("Notes",'') || '\n' || coalesce("Function",'')


1

I believe some of the comments already addressed the table join issue, so I'll just address the symbology/labeling. One of the most important things to consider when trying to symbolize/label is to make things easy to interpret at a glance. In order to do this, you want to avoid clutter, avoid anything too complicated, and to use intuitive symbology. In ...


0

If the shapefile contains the names in the attribute table, you can use the "abc" icon to label the points. You can set the point style to something small or transparent if you don't want to see them. You can save the style to a .qml file, and add it to the layer in any other project as well by loading the style from the .qml file.


4

One approach would be to load the contour layer and style it. Then load the same layer again and apply a filter (right-click on the layer and go down to 'Filter..') Use a filter expression similar to the one shown in the picture. In my case I wanted major contours at vertical intervals of 50 metres and the field containing the elevation values was called ...


8

In QGIS 2.6 (maybe earlier versions as well, I don't know) you can do this under the Layer Properties, Labels tab, Rendering section. About halfway down the list of rendering options is a button that will let you write an expression which will define the list of features that will actually be labeled. Your expression would be something like "Elevation" IN ...


0

I have two...workable solutions, First solution: set label classes for the features in question. Then change the default class to not include anything within the extent. This does require writing SQL that calls out each of these features individually so not a great solution. Second solution: create a new Polygon feature mimicking the extent indicator. ...


0

Try the Easy Custom Labeling plugin. When you move the labels though, save the layer to see the label moved to the end of the line (otherwise it looks like it is stall halfway along it). Also note what it says about making a virtual layer!


3

In the labels tab of the layer properties, use an expression as the label field. Do this by clicking the curly 'E' at the top next to the field selector drop-down box. When the expression dialog opens use a conditional statement based on a modulus function something along these lines: CASE WHEN "point_index" % 30 = 0 THEN "point_index" END


2

You can achieve this with a regular expression. The current logic below assumes the format is as described above, i.e. 1 or more numbers in a single group at the end of the string. So it will not find numbers embedded in the string "bob123gps456". Function FindLabel ( [FeatureClassName] ) dim s, reg, mc s = [FeatureClassName] set reg = new RegExp ...


2

Specific instructions then would be to right-click the layer in the table of contents and go to "Properties". Then choose the "Labels" tab. Check the box to "Label Features in this layer" and choose your "Subname" field as your "Label Field". Change the Font using the options under "Text Symbol".


1

Another option is to set custom label expression on the layer (changing size and color..etc) using python: e.g. def FindLabel ( [NAME], [POPULATION] ): if long([POPULATION]) >= 250000: return "<CLR red='255'><FNT size = '14'>" + [NAME] + "</FNT></CLR>" else: return [NAME] Building label expressions They may be set ...



Top 50 recent answers are included