Hot answers tagged

7

I found this other thread which was helpful How do I set layer transparency in QGIS 2.0 with Python? It seems like there should be a shorter and more efficient way, but I tested this and it works: print 'Start' active_layer = qgis.utils.iface.mapCanvas().currentLayer() raster_transparency = active_layer.renderer().rasterTransparency() ltr = ...


6

ArcMap won't do that for a single layer - transparency is handled for the entire symbology as a unit, not in pieces. So, the solution is to just have two copies of the layer in your table of contents. One with the outline and no fill, the other with no outline and a colored fill with whatever transparency you are looking for. Just make sure the layer with ...


5

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


5

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


5

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 http://a.tile.openstreetmap.org/{z}/{x}/{y}....


5

This is a known issue with ESRI. Their Page suggests these following workarounds (quoted from ESRI): Use one of the following two solutions to solve this issue. It is highly recommended to download and use ArcGIS Pro to perform all printing and exporting functions. ArcGIS Pro is not limited by the graphical device interface (GDI) ...


3

I would read the JPEG2000 files through GDAL virtual format http://www.gdal.org/drv_vrt.html. Convert JPEG2000 into VRT and assign nodata value with gdal_translate: gdal_translate -of vrt -a_nodata 0 input.jp2 output.vrt Check with gdalinfo gdalinfo output.vrt Band 1 Block=128x128 Type=Byte, ColorInterp=Red NoData Value=0 Overviews: 6000x6000, ...


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

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

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


3

Another nice work around I regularly use to insert my company's logo with a transparent background is to add an additional dataframe in layout view. Then bring the transparent background tif or png in as a layer, zoom to layer, go to the symbology tab in layer properties change Stretch to none and Display background value (R,G,B, / 0,0,0) as hollow. Ensure ...


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. http://resources.arcgis.com/en/help/arcobjects-net/...


2

Go to Data Frame Properties Frame Background Properties Change Symbol Edit Symbol Chose Type: Marker Fill Symbol Marker... Edit Symbol... Character Symbol Add letters in different layer. Change color(white), size,Mask-Gray.10% and offset. Fill Properties- Separation-x-250,y-250.


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

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

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

I have faced problems in QGIS when I have been using somewhat complicated expressions, they just don't seem to work like they should. You might be better off just using Rule Based Styles, you can set Rules to define which symbol to use based on the columns you have (Gender and Year) by applying filters, then you can the customize the applicable symbol in ...


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

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

Just a quick thought off the top of my head: maybe its possible to create the .qlr file by programmatic means without using qgis? Look at a generated qlr and see if you can make sense of it.


2

Although some ArcGIS for Desktop answers have been provided at Making map where overlapping symbols increase Opacity?, I do not think there is a good solution for doing this in ArcMap. I think this would be a good candidate for ArcGIS Ideas if you need it in ArcMap, but it looks like the functionality you are after may already be in ArcGIS Pro - see the ...


2

If those lines are vector lines (and not graphic lines as well) and you want to places those pictures onto them you can just add a point layer and put points where you need the symbol. Then you use your picture as a picture-marker-symbol where you can set the background or transparent-color to no-color. If you need special rotations you can put the angle ...


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

Use vector EMF. Works fine but EMF is the only vector format supported by ArcGIS Desktop (I am not even mentioning Pro as it is not a fully fleshed out and production ready GIS). You can create and then convert vector graphics in most graphic design software. For example, open a vector graphic in Adobe Illustrator and export as EMF. I won't discuss tracing ...


2

Is Python a requirement? If I understand what you want, you can do this in the QGIS UI, in the raster layer properties:


1

With ArcMap, there is no way I know of to bump up the resolution. For "transparency" of background, you could make the background a bright color, and then in Photoshop, replace the color with transparency and export to PNG. That could be a lot of work depending on how many photos you have. There might be a way to automate that process in Photoshop, depending ...


1

The transparency is given by the so called Alpha Channel (Alpha compositing) In a .qml file: <symbols> <symbol alpha="0.10" clip_to_extent="1" type="fill" name="0"> This is the alpha value of the symbol (Layer transparency) and the value is 0.10 which corresponds to a transparency value of 0.9 If you try with multiple values of ...


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



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