Tag Info

Hot answers tagged

7

You can make transparency vary for each category using a field value if you click the Advanced button in the Symbology tab (EDIT: available in 10.0). Now you have to see what's more convenient between adding and populating a field with the percentage, and duplicate the layer as @artwork proposes. The first option will surely save extra work if you need to ...


5

I'm assuming that you're trying to set the IColor as RGBA with the transparency in the colour... that's not how it works, when you create an IColor from RGBA only the RGB is set, the alpha is ignored... see IColor, the options are CMYK, Gray, HLS, HSV, RGB - none of these have Alpha. To get transparency on a layer you need to use the ILayerEffects Interface ...


5

As far as I know, there is no way to make text transparent in ArcMap. My suggestion for a workaround would be to export to PDF and then add the watermark using Adobe. That's what I do to add watermarks to my maps. The limitation of this would be that it requires Adobe Standard I believe. If you don't have Adobe Standard, here is a link with some other ...


3

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


3

If you have an RGB map, you can use the pansharpening option in the symbology (RGB composite) of your RGB, selecting the Hillshade instead of a panchromatic image.


3

This is possible in QGIS using the print composer. You'll need to both: Remove the background color from the map item. This is done by unchecking the "background" option in the map item's properties. (The default is a white background) Set the page itself to a transparent style. This is done through the composition properties tab.


3

Arcmap has the ability to save with transparent colour for those image formats that support a transparent colour: GIF and PNG, of these two the PNG (Portable Network Graphic) is the better format as it supports 24bit colour and transparency where GIF only has 8bit palette colour and transparency. To make the export transparent select in the export dialog ...


2

You should use two different STYLE blocks, one for the fill and one for the stroke: CLASS STYLE OUTLINECOLOR r g b #stroke WIDTH 3 END STYLE COLOR r g b #fill OPACITY 50 END END Ordering is important, you'll get different visual results if you swap the order of the STYLE blocks.


2

Assuming you're trying to use it within a GIS-system, QGis does the trick. It's a free GIS-system, and you can set transparancy layer-based, toggle layers on and off, switch around the order, ... Whereas - to the best of my knowledge - Arcview or MapInfo's Proviewer do not offer the option to combine layers. That said, transparancy and opacity are not ...


2

There is a Knowledge Base document entitled FAQ: What is the best format to use when inserting logos into a map document while maintaining transparency? which says: Logos are usually designed in a vector illustration package such as Adobe Illustrator, and then exported to a pixel-based format. However, exporting the logo as EMF will maintain the ...


2

A little python script like this would do it for layer in iface.legendInterface().layers(): layer.renderer().setOpacity(0.2) Just copy and paste that into the python console (which is shown via Plugins->Python console) and hit enter twice. The script will loop through all layers and set their opacity to 20%.


2

You can enforce real nodata on the file using GDAL translate utility, look in your QGIS install location bin\ folder. GDAL_Translate -of GTIFF -a_nodata value InTiff OutTiff Substitute your own value for value. NoData does not have to be the highest or lowest value in the file you can set it to any value. Only one value is supported though so if you have ...


2

The problem is not in the code, but on the image itself. The Geotiff has 3 bands, and the nodata value is set to 0 Band 1 Block=508x8 Type=Byte, ColorInterp=Red NoData Value=0Band 2 Block=508x8 Type=Byte, ColorInterp=Green NoData Value=0 Band 3 Block=508x8 Type=Byte, ColorInterp=Blue NoData Value=0 However inspecting the image in QGIS, it ...


2

You can only set the transparency if you symbolize say a point feature as a chart which in your case is pie chart. Please see the Symbology tab of your feature class. After this, you can set the transparency of your feature class from the Display tab and this will reflect on the pie charts.


2

Is it possible to use an annotation feature class for the 'DRAFT' text, manually editing the text, and setting the transparency for the layer at 50%? This allows you to see the features under the text, and it is not necessary to export the document for use in another program.


2

I'm guessing the areas with no imagery all have the same NoData value? right click on your layer and select "Layer Properties" go to "Transparency" top right "Additional No Data values" enter the value of the white areas


2

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


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

First of all I would place the raster as the bottom layer, then the white cells won't hide anything. If this is not an option try the layer Properties > Transparency tab. With the plus sign you can define color transparency for a specific color.


1

No, transparency can only be defined at the layer level, not the individual symbols. The work around would be to have multiple versions of that layer in the table of contents defined at different transparencies based on a layer definition query if needed.


1

Thanks for your answer! The solution I found more appropriate and clean is using Canvas indeed I paste the key part of the code. - Icon variable is the key for Google Map - The call back is a function that takes the variable Marker (since the construction of Canvases can be asynchronous.) var canvas = document.createElement("canvas"); ...


1

here's a better answer, use gdalbuildvrt with either srcnodata or vrtnodata flag: gdalbuildvrt -srcnodata "123 231 67" outfile.vrt input.tif If the next application in line doesn't understand .vrt, translate to a new tif: gdal_translate outfile.vrt final.tif



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