Tag Info

New answers tagged

1

Short answer: Go to this layer's symbology and under Categories pick a unique Value Field, push "Add All Values" and OK. Long Answer: In the Table Of Contents (the window on the left that contains the XY points layer), right click the layer of XY points and push "Open Attribute Table". Here you need to find a field with a unique value for each row, which ...


1

In our office (we are a state agency) Federal Highways are Blue with slight black outline on each side of the line, State Highways are Red. Farm/Ranch to Market roads (small state highways) are Black or dark gray. County roads are slightly lighter gray. If a map is zoomed in close enough for city level roads they are kept a shade of gray as well. I cant ...


0

Convert the .NET color object from the color dialog to an IColor first using the RGB components first. Passing the color properties to a method like this should do it: public IColor GetColor(int pRed, int pGreen, int pBlue) { IRgbColor rgb = new RgbColorClass(); rgb.Red = pRed; rgb.Green = pGreen; rgb.Blue = pBlue; ...


0

```CS IFeatureClass featureClass = null; IObjectClass objectClass = feature.Class; featureClass = objectClass as IFeatureClass; IGeoFeatureLayer layer = featureLayer as IGeoFeatureLayer; IFeatureRenderer featureRenderer = layer.Renderer; ISymbol symbol = null; if (featureRenderer is IUniqueValueRenderer) { ...


3

you can use the css classes named esriScalebarRuler and esriScalebarRulerBlock I can't find a ruler example to see available css properties on these classes, but if you right click the scale bar and inspect it in the console, look for border styles to set to red, such as: .esriScalebarLabel { color:red !important; } .esriScalebarRuler { border: 2px ...


1

Next script works for me. layer=iface.activeLayer() myGrayRenderer = QgsSingleBandGrayRenderer(layer.dataProvider(), 1) layer.setRenderer(myGrayRenderer) renderer = layer.renderer() provider = layer.dataProvider() layer_extent = layer.extent() uses_band = renderer.usesBands() myType = ...


1

There should be some color progression options that can suit your needs for vector data. Look under "categories and then once you have your value field selected, click the "color ramp" and scroll through. Some of the choices are actually color progressions between two colors. If those aren't quite what you are looking for there go down to "quantities" and ...


1

If you want to use 4 colors for all your features, you can use the following approach with a categorized style: Please add a sketch for your third point ("A chunk of n points in a single large polyline."). I can't imagine what that should look like.



Top 50 recent answers are included