Questions tagged [layers]

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.

Filter by
Sorted by
Tagged with
25
votes
7answers
45k views

Changing data source for all layers in MXD?

I have an MXD. It connects to about 30 layers in one of our SDE databases. I want to change the SDE database they connect to. Is there a way to do this without having to right-click every layer ...
1
vote
2answers
646 views

Arcpy: replaceDataSource, cad_workspace

I am having trouble replacing the data source on CAD files using arcpy. Everything I have tried runs into this error: Runtime error type 'exceptions.ValueError' : Layer: Unexpected error Here is a ...
2
votes
1answer
469 views

ArcPy replaceDataSource to ArcSDE raster catalog error?

I'm trying to re-path a multitude of rasters currently the workspace is a folder, the intended workspace is a raster catalog in an SDE database - using the replaceDataSource method I'm getting the ...
3
votes
1answer
503 views

Removing WMS layers from mxds using ArcPy?

I'm trying to remove WMS layers from an mxd using arcpy. I can successfully remove "MapServer" type services using the below code, but not WMS? Here is an example mxd (zipped) with two different WMS ...
3
votes
1answer
1k views

Updating layer datasource in multiple map documents using ArcPy gives SyntaxError?

I would like to update the data source of a specific layer in multiple map documents using ArcPy. However, I'm getting a <type 'exceptions.SyntaxError'>: invalid syntax error on if lyr....
1
vote
1answer
137 views

Finding later added data from two layers in QGIS or ArcMap?

I have two layers which consist of 2010 and 2011 years POI. And in QGIS I want to find which POI have been added new in 2011 data. Or can we get result from ArcGis or any other tool?
3
votes
0answers
177 views

Looking for best practices for GIS file systems [duplicate]

Possible Duplicate: Organization and tidiness issues - How do you deal with multiple copies of layers? I'm trying to organize my GIS data in a file system. I work with DTED (0,1,2), raster ...
4
votes
1answer
10k views

Converting *.lyr file to shapefile or raster using ArcPy?

I am using ArcGIS Desktop 10 and Python 2.6.5. i have created a "test.lyr" file, now i want to convert it either to shape file or raster file. i have created the "test.lyr" from "test0.tif" and added ...
3
votes
4answers
7k views

Adding Raster Layer without lyr file using ArcPy?

i wonder how i can add a raster layer to a remote (not the current) mxd file with arcpy. I need to not use a lyr file for that. For vector Layer i have the following lines working fine : mxdPath = "...
6
votes
1answer
1k views

Drive time analysis with ArcGIS Network Analyst?

What is the most common SETTING for the Layer Properties when creating time-travel polygons? I am in the process of creating 4, 5, 6 minute polygons using Network Analyst. Every time I generate ...
0
votes
1answer
71 views

Adding data at runtime into dataframes using ArcPy?

I am trying to create an empty MXD to act as a template. I will have three dataframes for maps, each holding a different object from ArcSDE (1 raster object and 2 features). I know how to query ...
11
votes
2answers
14k views

Changing data source path involving feature dataset in *.lyr files using ArcPy?

How can one change the source data paths for every layer file in folder X using arcpy? I've followed Updating and fixing data sources with arcpy.mapping as best I can, yet all I get is an unhelpful ...
13
votes
5answers
18k views

Removing feature layer using ArcPy script?

I have an ArcPy based script where I'm trying to intersect two layers where one layer must have its centroid in the other layer. Since I need to know that one layer (feature_layer below) includes ...
20
votes
2answers
32k views

Adding shapefile or feature class as layer in ArcGIS Desktop using Python/ArcPy?

I am trying to automate various tasks in ArcGIS Desktop (using ArcMap generally) with Python, and I keep needing a way to add a shapefile to the current map. (And then do stuff to it, but that's ...
7
votes
2answers
11k views

Using Google Maps as layer in ArcMap?

Can I use Google Maps as a layer in ArcMap? Is it possible?
4
votes
2answers
10k views

Changing data source of layers with ArcPy?

How do I change the data source of all layers in a map document using ArcPy and Python?
2
votes
3answers
2k views

Adding shapefile as layer in ArcMap via Python scripting?

I am trying to automate various tasks in ArcGIS Desktop (using ArcMap generally) with Python, and I keep needing a way to add a shapefile to the current map. (And then do stuff to it, but that's ...
28
votes
3answers
6k views

Organization and tidiness of multiple copies of layers? [closed]

Back in the days when I was in the university I had a "Organization and tidiness" problem – I was unorganized and kept my layers in different folders without distinct names and hence had multiple ...
16
votes
3answers
6k views

Using ArcPy to get layer symbology?

Since ArcGIS 10 comes with the ArcPy package, I'm wondering it is possible to use ArcPy functions to get Symbology (i.e color, width...) of a layer?
3
votes
1answer
1k views

Loading map files using ArcGIS Silverlight API?

Is there a way to use the Silverlight API to load common maps formats (i.e., layers, shapefiles or rasters) off of my local machine?
1
vote
1answer
234 views

Network Analysis Layer in ArcGIS Mobile Map Cache

Does anyone know how to extract a Network Analysis Layer into an ArcGIS Mobile Map Cache?