Tag Info

New answers tagged

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

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


0

If you are trying to rename the field STR_NAME to STREET, ArcObjects does not allow you to do that. You will have to create the field STREET, copy the data from STR_NAME into it, then delete STR_NAME.


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


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

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


0

I figured out that the solution could come from a software called QGIS. I used a plugin called 'Afine Transformation' and moved my whole layer to the left or right and then reloaded all of my data on the database and the geoserver.


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

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


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


0

Are you sure is not that the "Factor to convert layer elevation values to scene units", in the "Base Heights" tab, is changing to another number? If you are using geographical coordinates and meters, try using 0.000015 as value.


0

In order to turn a raster or vector layer on, you have to make it visible, using qgis.utils.iface.legendInterface().setLayerVisible(layer, True) Try this from the Python Console name = "myrastername" layerlist = QgsMapLayerRegistry.instance().mapLayersByName(name) layer = layerlist[0] qgis.utils.iface.setActiveLayer(layer) print ...


0

You can use the spatial adjustment method in ARC GIS. Once you add into arc Map, you need to make it editable than after spatial adjustment option is enable.And you also import your control point Spatial Adjustment->Link->Open Link....... For more details please refer Spatial Adjustment section of ESRI help


0

I resolve it! The problem was that there was a Chile's Layer that it was taking too much time to load (47 sec) and then the legend also was trying to load. The solution was to load the legend after the webpage it was loade with this code: document.onreadystatechange = function() { if (document.readyState === 'complete') { loadLegendLayers(); } ...


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



Top 50 recent answers are included