Hot answers tagged

4

You can set the page background to transparent by creating a transparent symbol and setting the page background to use that symbol: transparent_fill = QgsFillSymbolV2.createSimple({ 'outline_style': 'no', 'style': 'no'}) c.setPageStyleSymbol( transparent_fill ) There's also a few other things wrong with your script: First, mapRenderer = ...


4

The following works in 10.2.1 and essentially turns the sketch hollow as suggested by Ian. As soon as you stop being in sketch mode it returns to your selected transparency. In the Editor toolbar go to Editor > Options and untick Use symbolized feature during editing.


4

QGIS does not support Openstreetmap tiles natively. I assume you are using the openlayers plugin. That does not allow for transparency. Alternatively, you can use the TileLayer plugin with the ability to set the transparency: The tab delimited lines for a text file with .tsv extension are: Openstreetmap OSM ...


4

I would use the clip to shape option in the data frame properties. Have two copies of your basemap in the Data Frame one with no transparency which you clip to your town border using the option below. Then make your second one transparent and sitting below the first basemap and exclude it from the clip using the Exclude Layers button. Below is a very ...


3

Unfortunately, to my knowledge - a transparency can't be applied to a graphic. You would need a third party software to do it (even then, not sure it would import as transparent, arc tends to white it out). You can maybe export layout view to illustrator, but you won't be able to do it natively.


3

For a point feature: You'll basically need to define with a transparency prefix (see below). In your color tag referenced in your code above (ff0000ff ) the prefix ff represents 100% opaque or 0% transparent. To get to a 50% transparency, you'd need to use the hex representation of 7F as your prefix (7F0000ff) Hex Transparency Guide in Answers From ...


3

The easiest way to loop through layers in ArcMap is to use IEnumLayer. You get a reference to that from IMap.Layers. http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//001200000482000000 Then check the type and cast each raster layer returned by the enumerator to IRasterLayer. ...


2

You asked that ages ago but, maybe useful for some, as not answered yet... You said that you are keep your adnotation in the map but if you save them in a database You will have full control over the adnotation, including transparency is it something you have been looking for??


2

Another option, requiring no python, is to simply edit you project file. Raster layer transparency is set with: rasterrenderer opacity="1" You can open your project file .qgs in a text editor and find and replace: rasterrenderer opacity="1" With: rasterrenderer opacity="0.73"


2

Perhaps dissolve the polygons together. Another option: within symbology you can select "no color" for the border of the polygons.


2

This is a known issue, here is the work around Open the image using Microsoft Word or PowerPoint, then right click on image and cut/copy and then paste the image into the ArcMap document in layout view. source: http://support.esri.com/fr/knowledgebase/techarticles/detail/25368


2

You have to right click on the Layer in the Layers Panel on the left and select Properties where you can then set the Global Transparency for this layer. This works the same no matter your raster or vector format.


2

Sorry for the short answer but I suppose that simply adding an alpha channel might do the trick. At least I could make an output that is semi-transparent in QGIS with the following command. gdal_rasterize -of gtiff -ot byte -co alpha=yes -burn 255 -burn 0 -burn 0 -burn 100 -ts 500 500 -l test test.shp test.tif


2

Further to Dan's answer on enumerating layers... with the UID.Value of IRasterLayer (see example UIDs here) supplied to the get_layers function you don't need to check later that it is a raster layer you're playing with, however sometimes you need to use the UID for IDataLayer which will return feature layers and raster layers, so to check this use: if ...


2

With the <color> tag, as follows: <color>ff0000ff</color> The first two hex characters define the alpha band, or opacity. ff = completely solid 00 = completely translucent More info here


2

I found a solution to my problem: In the transparency tab use the mouse selection tool to add a value from the screen by interactively clicking on a pixel. This will automatically add a new line in the table to the left showing the band characteristics of this pixel. Clicking on apply will then set to transparent all the pixels in the raster with the same ...


2

Working off the answer given by Dan, this script will remove the transparency from all layers if you run it in the python window in arcmap. mxd = arcpy.mapping.MapDocument ("CURRENT") df = arcpy.mapping.ListDataFrames (mxd, "Layers") [0] for lyr in arcpy.mapping.ListLayers (mxd,"", df): lyr.transparency = 0 arcpy.RefreshActiveView() mxd.save del mxd


1

Loop through your layers and use arcpy.mapping.Layer arcpy.mapping and set the transparency property.


1

See the 'Transparent pixel list' under the Transparency Tab. You could set the ranges for your white pixels in this list and give a 100% transparency.


1

Not sure what the problem is, I can access Layer Properties > Transparency and change the Global transparency and the Custom transparency options as answered by @Kersten. Alternatively, you can use the Python Console to set your transparency: rlayer = qgis.utils.iface.activeLayer() rlayer.renderer().setOpacity(0.5) # 0.5 = 50%; 0.1 = 90%... ...


1

Try to use nearblack gdal utility for make raster with transparent background.


1

QGIS has the option to set transparency based on a number of factors no matter the file format you use. All can be set from the Transparency tab in the raster layer Properties. Just set 100% transparency for red=255, green=255 and blue=255.


1

The problem is that 'QgsVectorLayer' objects have not attribute 'renderer'. This kind of method is for raster layers. If you want to change the transparency of QgsVectorLayer objects you have to use the method: 'setLayerTransparency(int)'; located in QgsVectorLayer class. Next code works for these kind of objects: mc=iface.mapCanvas() layers=[] n = ...


1

A blog entitled Help! My ECW has speckled edges! from Hexagon Geospatial covers this topic quite well because knocking out pixels is not a reliable solution. If the ECW was created with an Opacity Band, QGIS would use this as an Alpha band. If you received the rail corridor ECW image from a third-party data supplier, I would go back to them and ask that ...


1

Good solutions, another solution to this problem and one that I would have used until I read these other posts would be to create two layers from the same shapefile. The first layer I would symbolize with the color you want to fill and no border outline, then I would set this layer to the transparency you required. The second layer would display all of ...


1

You will find the annotation layer in the properties of your dataframe. I do not know (yet) how to make them transparent.



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