Tag Info

Hot answers tagged

4

http://qgis.org/api/2.2/classQgsSymbolV2.html#aa2c7db61d4234bddf3aa62f294ad6818 void QgsSymbolV2::setColor(const QColor & color) with python: myColour = QtGui.QColor('#ffee00') mySymbol1 = QgsSymbolV2.defaultSymbol(myVectorLayer.geometryType()) mySymbol1.setColor(myColour)


2

You appear to be trying to turn off/on Layer Visibility in GeoWebCache which is integrated with GeoWebServer. Geowebcache is used for caching tiles to improve speed, not controlling layer visibility There are two ways to handle layer visibility Style the Layer using SLD in GEoserver, using<MinScaleDenominator></MinScaleDenominator> and ...


2

You can use the write function of the OpenLayers.Format.GeoJSON to generate (Geo)JSON directly. The input is either an OpenLayers geometry, feature or feature vector, so the returned JSON, will either contain one or many features depending on the input. Note if your OpenLayers Features have attributes, these get turned into JSON too, so you can use this to ...


1

This interaction does not support custom projections. In the code, the private ol.interaction.DragAndDrop.prototype.handleResult_ calls the code below: var readFeatures = this.tryReadFeatures_(format, result); This code itself return format.readFeatures(text) (where format is ol.format.GeoJSON). If custom projections were supported, it would be ...


1

The tool you are looking for is called Mosaic to new raster. It sits in the Data management toolbox under Raster/Raster Dataset. If your rasters are all neatly aligned, you don't have to worry about the mosaic operator. However if any of the rasters overlap, the mosaic operator gives you the ability to choose which value or which raster should get ...


1

Generally you access the QgsMapLayerRegistry if you want access to the layer object again. The layer may or may not be in the canvas i.e layers that are not visible are not in canvas.layers(). addMapLayer() should add it to the canvas and update layers() automatically. If not it might be a bug. Like I said it's safer to use the registry to find the layer ...


1

The only types of layers you can add to an mxd with arcpy.mapping are map layers (layers in an mxd), and layer files (.lyr). A feature layer (in-memory layer) you create using the Make Feature Layer tool is not valid. In addition, Make Feature Layer doesn't accept topologies as input (a topology is a dataset, not a feature class). You can export a ...


1

If you have added the labels inside of your data frame, you can turn them on and off. Here are a few ways to know if your labels are inside or outside of your data frame. If you are in Data View and you can see the labels, they are inside of your data frame. If you are in Layout View, first notice if you are working inside or outside of your data frame. ...


1

Here is a working code for your problem: http://jsfiddle.net/GFarkas/rkhzfguz/1/ Some explanations on the wrong lines: var crs = L.CRS.proj4js('EPSG:3301', '+proj=lcc +lat_1=59.33333333333334 +lat_2=58 +lat_0=57.51755393055556 +lon_0=24 +x_0=500000 +y_0=6375000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs', new L.Transformation(1, -40500, -1, ...


1

I don't even think being able to extract the T and V, if possible, is gonna be reliable cross-browsers. Might just be a browser interpretation thing. In any case, if you have access to it, I would just add your own attribute when you're creating the layer: var foo_layer = new ol.layer.Vector(...); foo_layer.layer_type = 'vector'; Then you can use it later ...


1

You could create a GDALDataset with as many bands as you have raster bands, then copy the data from each of your bands into the corresponding band in the GDALDataset. Here's some example code in C++ (since that's where I'm most familiar with GDAL). //create the dataset const char *filename = "example.tif"; GDALDriver *pDriverTiff = ...


1

Check out compositing operations, possibly dst-in. Your carto might look something like this: #neighborhoods { line-color: #ccc; polygon-opacity: 1; polygon-comp-op: dst-in; }


1

You able to save the default layer states using Adobe Acrobat Pro. You are unable to do this in Acrobat Reader or even Standard, however. Instructions from Adobe Help are included below, with the default state being the flag to change. Edit layer properties (Acrobat Pro) You can combine the default state setting, the visibility setting, and the print ...



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