A layer is a collection of information. It contains specific elements of a gis in a specific presentation method (e.g raster or vector layer). Layers can be edited separately in order to create individual toppics for a map.

learn more… | top users | synonyms (1)

3
votes
2answers
2k views

Adding Shapefile with Symbology from Layer File to ArcMap MXD using ArcPy?

I have a Shapefile: C:\DATA\points.shp A layer file: C:\SYMBOLOGY\symbology.lyr And a map document: C:\MAPS\map.mxd How can I add points.shp to map.mxd with the properties of symbology.lyr all ...
2
votes
1answer
315 views

Ordering Cartodb torque visualization over Google Maps heatmap layer

I am attempting to create a map with two layers: a CartoDB Torque visualization on top and a Google heatmap layer underneath. So far I have only been able to get them to draw in the opposite order I'...
2
votes
0answers
134 views

How to make a model with more than 2 input layers for buffering and merging?

Would it be possible to add more inputs to Buffer and Merge? From what I can see there is a limit of two input layers per both. As far as I know this is possible in ArcGIS's Model Builder but from the ...
2
votes
1answer
783 views

How to add label to QgsVectorLayer by Python

my goal is to define label programmaticly for the case similar for the figure below: But didn't find any guidance how to do so using Python. I have a feeling it could be done using QgsLabel but ...
2
votes
1answer
408 views

Listing Elements or Datasets of Layer gives ERROR 000840 value is not Feature Layer?

I used Ar5cPy to do batch processing of Network Analyst - Make Service Area layer of thousand of stores. Everything went well except now, I am stuck with layer (.lyr) files and I would like to ...
2
votes
2answers
747 views

Add multiple Layer files in subdirectories to mxd using python

I have more than 300 layer files located in many sub-Folders and sub-sub-Folders. All Sub Folders are located in one large directory.I read Use python to add layers to TOC and I try, with arcpy, to ...
2
votes
1answer
89 views

Sunlight layer into CartoDB

I have a list of tweets on a torque map made with CartoDB. I want to add an additional layer that shows the sunlight around the world at certain times, similar to the Twitter #sunrise map found here. ...
2
votes
1answer
730 views

Can I Turn Off or Remove Map Layers in QGIS Print Composer

The title pretty much says it all. I have a base map in QGIS that I am using with several Print Composers. In one of the Print Composers, I don't want one of the layers to show up. Is there any way ...
1
vote
0answers
80 views

Adding layer to MXD from different SDE slows down ArcPy script

My python script looks at layers in an MXD, then does a couple of clip and measure operations and generates a PDF. It works accurately and quickly (0.5-3 seconds) when all the layers in the MXD are ...
1
vote
1answer
643 views

How do I programatically edit the layer 'Display Expression'

I'm wondering if someone has or knows where a tool is to edit the 'Display Expression' of a Layer, or more specifically, a TableView, in ArcGIS Desktop. I know that it can't be accessed with Python, ...
1
vote
2answers
58 views

How to insert layer excluding MXD files using arcpy?

I'm working on 24 MXD files. Several maps include "roads" layer in them, the other maps don't have this layer. I'm trying to add "roads" layer to all the maps that do not have this layer by using this ...
1
vote
1answer
347 views

Turning off all layers in MXD using ArcPy?

I tried this standalone script to turn off all layers in the MXD: print "This script turns off the following layers:" try: arcpy except NameError: import arcpy mxd = ...
1
vote
1answer
288 views

How to sum the values for bins with the same location?

I have two maps in csv form, each has a latitude, longitude, and value column. Since not all the positions in one map are in another map, is there any way in QGIS to display a new map which only shows ...
1
vote
1answer
56 views

How to export specified layers in ArcMap using ArcPy

I am trying to export specific layers from an ArcMap .mxd. From the TOC below I would like to export "irrig_2, citylyr, boundlyr" as a GIF. Once this is done the script would then export "irrig_1, ...
1
vote
1answer
1k views

Applying layer file not formating labels in ARCGIS 10

I'm applying layer files in ARCGIS 10 using the ApplySymbologyFromLayer_management command via a python script tool. The symbology part works fine but the lables are not formatting. It is my ...
1
vote
1answer
1k views

why can't I load a layers list to select from to the map in openLayers 3, addEventListener and attachEvent are unavailable

I've tried to incorporate this sample that shows how to switch base layers into a page I am working on: http://openlayers.org/en/v3.10.1/examples/bing-maps.html When I try to load my page with the ...
1
vote
1answer
5k views

How to Obtain the feature attributes from feature collection

I am able to obtain the features of the layer which is selected by the user in the Layers table and then intersected by a user defined polygon, using e.features. I was able to obtain the attribute ...
1
vote
1answer
162 views

Overlap or intersect two choropleth [closed]

I have two choropleth of the same area but with different concentration data and I need to overlap them. My aim is to highlight the areas of intersection between the points with the highest ...
1
vote
1answer
39 views

Legend hangs with large featurelayers at startup

My problem is that I created an app with a lot of services that the user can use. The problem is that when I implement the legend widget and the code goes over startup(), the app becomes stuck and it ...
1
vote
0answers
36 views

Can a joined-layer have its attribute changed depending on what layers are selected/deselected?

Using QGIS, I have a polygon-grid layer which covers everything, Layer_All joined with 2 other grid layers: Layer_1 and Layer_2, both of which intersect at various points. I would like Layer_All to ...
0
votes
2answers
160 views

How to remove layers that are not in visible df extent

I am working on ArcMap 10.3 and I have a map with 50 layers in it. I am trying to check if layers are in a data frame. Unlike How to check if layers in a dataframe with Arcpy, I want to define the ...
0
votes
1answer
49 views

Remove layers using python- path orientation

Expanding on my previous question Code error - remove layer using python, i try to remove layers from mxd's (in ArcMap 10.3, python 2.7.8), that don't appear in the data frame with this code: import ...
0
votes
1answer
69 views

Code error - remove layer using python

Continuously to How to remove layers that are not in visible df extent i try to remove layers that don't appear in the data frame with this code: import arcpy,os from arcpy import env env.workspace =...
0
votes
1answer
1k views

How to resolve error “Handle bad layers” in QGIS?

I'm new to QGIS and have been seeing what it can do for me – seems good. I imported shape file data from a UK Ordnance Survey data file and saved the file in a new folder. It was very good, doing all ...
0
votes
0answers
189 views

Missing Raster/Vector Layers after converting KMZ using KMLToLayer tool of ArcGIS Desktop?

I am trying to write a tool that will let users upload a KML/KMZ file and then be able to view it in a client application (something like an esri js api or Flex app). I am ok with storing the data in ...
0
votes
3answers
95 views

Searching for changes of 2 layers based on geometry, Arcgis for desktop (ArcEditor

I´m trying to make a tool that would be able to compare 2 layers of any type (polygon, point, polyline) and find differences between them. Lets say i have a layer of roads (Polyline) from 2005 (layer ...