Questions tagged [layer-file]

A Layer (*.lyr) or Layer Definition (*.qlr) File in ArcGIS or QGIS respectively, that stores a path to a source dataset and other layer properties, including symbology.

Filter by
Sorted by
Tagged with
2 votes
2 answers
184 views

How can I make an Atlas of the land cover within each of the watersheds?

I have a Land Cover raster that has its legend in a layer-file (.lyr), and a shapefile delineating watersheds. I have access to QGIS 2.8.1 and to ArcGIS 10.1. I want an Atlas of the land cover within ...
Nahas's user avatar
  • 983
0 votes
1 answer
502 views

ArcPy Script to update LYR data source not identifying all layers in folder?

I've put together a script that for the most part works as intended - to walk through a series of folders, find SDE layer files and update their data source to direct connects if the layers support ...
cofan's user avatar
  • 3
1 vote
0 answers
372 views

Using .lyr symbology in ModelBuilder?

I'm trying to set the symbology of a raster output in ModelBuilder of ArcGIS 10.1. I've followed the guidelines by creating the .lyr file and the adding it to the Layer Symbology tab of the Output ...
Justin's user avatar
  • 71
2 votes
1 answer
5k views

Can QGIS or GRASS convert layer files to shapefiles?

Should I be downloading QGIS or GRASS? I want the program with the most features. Most importantly, I have a lot of .lyr files. Can either of these softwares convert to shp and if so, how can I do ...
Glen's user avatar
  • 21
0 votes
1 answer
381 views

Recovering layer (*.lyr) file that is missing shapefile?

Somebody in the office deleted a point shapefile that has a lyr file as well. How can I recover it? Is there a Script that allows me to recover it?
PROBERT's user avatar
  • 4,113
1 vote
0 answers
158 views

Symbology templates mess up colors and legend labels when used in Python script

I'm having issues when trying to symbolize a layer from a .lyr template using a python script. The templates work when imported in ArcMap as seen below: But when run with the following Python code: ...
GISUser9's user avatar
  • 805
0 votes
1 answer
853 views

Merge layer files in folders and subfolders with arcpy

I work with arcview 10.3. I try to merge layer files in order to get one layer file that include all the features in the other layer files. All layer files as different names, and they all spread in ...
newGIS's user avatar
  • 4,004
2 votes
0 answers
111 views

Newly added layer has incorrect and seemingly unfixable data source

I am using ArcGIS 10.2.2. I added a layer to arc map and the layer loaded with the red exclamation mark next to it, indicating that it could not find the layer. I checked the data source and it was in ...
Daffy Lizard-Chunks's user avatar
1 vote
3 answers
57k views

Converting .lyr to .shp in ArcMap?

Does anyone know how to convert a .lyr to .shp format in ArcMap 10.2? I had a look at different forums on the internet and most people suggest that it works by right clicking on the layer in the TOC ...
Curious Girl's user avatar
2 votes
3 answers
1k views

Remove layer file from MXDs with multiple data frames using ArcPy?

I have a bunch of mxd's and I want to remove layer file from them. Each mxd has 2 and more data frame. I don't know why it does not remove. I'm trying this code: import arcpy,os,sys,string import ...
newGIS's user avatar
  • 4,004
0 votes
1 answer
3k views

Repairing link between shapefile and layer file?

every time I open the same lyr file I have to do data/repair data source (link to the shp file). I tried to save/export that shp file again, and create the new layer file as well, but every time the ...
Mario's user avatar
  • 161
34 votes
2 answers
18k views

Does QGIS have the equivalent of ArcGIS's Layer (*.LYR) file?

Using ArcMap, it is possible to add a dataset (eg a shapefile) to the map, and configure the layer's properties (such as the symbology, table joins, switching some attributes off in the Identify ...
Stephen Lead's user avatar
  • 20.9k
1 vote
1 answer
226 views

Apply lyr file to Arcpy

I am new to ArcPy, and don't know how to assign different layers to the same lyr file. The layers have "pol" in common. Replacement is a single layer, and so must be walked through the entire document....
user23986's user avatar
1 vote
1 answer
627 views

Is it possible to convert a jpg file into lyr

I am a beginner with GIS 10.0. IS there any way to convert a jpg file into a layer? I am working on a problem that needs to have the entire map of my city as a layer but I just have a jpg file of the ...
raha's user avatar
  • 31
4 votes
1 answer
1k views

How to read BMP file location of image used for picture symbol in LYR file?

I have a number of *.lyr files which are pointing to various .bmp files which are used as marker symbols in ArcGIS for Desktop 10.1 I was wondering if there is a way to extract the file paths of the *...
Dan_h_b's user avatar
  • 2,098
5 votes
3 answers
2k views

How can I parse hundreds of *.lyr files for their Definition Queries?

I have ~600 lyr files that reference a table on an SDE database that has about 20,000,000 records. Some of these *lyr files have an incorrect definition query applied or is missing the query entirely....
Hyperion's user avatar
  • 155
2 votes
1 answer
4k views

Why does arcpy.mapping.Layer give Runtime error: CreateObject Layer invalid data source?

I want to connect an existing .lyr file to a variable defined as lyr2. lyr2 = arcpy.mapping.Layer(r"C:/Iso100Red.lyr") Although it is a .lyr file, I get this Error code: Runtime error <type '...
gesi666's user avatar
  • 45
0 votes
1 answer
387 views

ArcMap, Joining information from lyr with attribute table

I'm working on a landcover project with ArcMap 10.1 right now and use the ModelBuilder a lot. So far I extracted a table from a certain layer using the Summary Statistics tool. However, one field of ...
T. K.'s user avatar
  • 283
1 vote
1 answer
708 views

How to save all Layers in ArcMap table of contents

Basically, I'm bringing layers into arcmap,repairing the data sourc, and then saving out the layers manually so that the new source is saved. This is very time consuming because I have several hundred ...
brett's user avatar
  • 19
10 votes
5 answers
33k views

Opening ArcGIS Desktop layer package (.lpk) file using QGIS on Mac?

I downloaded an LPK file from the Esri site that contains USPS defined zip codes. I'm working with QGIS on a Mac, so I converted the file to a .zip. There's a .lyr file that opened up in the zip, but ...
Alex's user avatar
  • 303
3 votes
1 answer
542 views

Replicate Import Symbology Matching Dialog in ArcObjects?

In Arcmap I can render a layer with same symbolgy applied to different fields by way of re-importing the .lyr file and choosing a Value Field. How can I replicate this functionality in ArcObjects?
Rich Beatty's user avatar
14 votes
4 answers
33k views

What is layer file (*.lyr) in ArcGIS Desktop?

My organization uses *.lyr files consistently as a means for our users to view the data and build their mxds. It works great for our purposes, but we have run into an issue where we don't think the ...
Craig's user avatar
  • 4,570
1 vote
1 answer
1k views

How to save an existing LYR file to use a relative path *and* have the LYR be v9.3 compatible?

Not sure if this is possible - I am writing a python script to convert LYR files to use relative paths and save the LYR as a 9.3 LYR file. I can do each one individually, but not together. ... # ...
Jesse Cleary's user avatar
23 votes
1 answer
10k views

Converting SLD to Esri layer or lyr file

Is there a software/extension to convert an SLD to Esri. lyr format, or to import the SLD directly?
giohappy's user avatar
  • 1,262
7 votes
3 answers
3k views

Remove username and password from saved arcgis layer (.lyr) files?

How can one remove the saved username and password from ArcGIS layer (.lyr) files? A scripted solution preferred but even a point and click method will be welcome.
matt wilkie's user avatar
35 votes
5 answers
99k views

Adding Layer Files (.lyr, .lyrx) to QGIS

At college we use ArcGIS Desktop 10, but that does not function on my Mac so I have QGIS there instead. I want to do my exercises with QGIS, but in ArcGIS Desktop we use .lyr files with ArcMap and ....
David's user avatar
  • 395
9 votes
2 answers
4k views

Are layer files compatible between ArcGIS 10 and 9.3?

If I save layer files in ArcGIS 10, can they be opened and modified in ArcGIS 9.3?
Ian Torr's user avatar
  • 321
18 votes
4 answers
4k views

Are ArcGIS *.lyr and *.mxd data format specs published?

Are the binary formats of *.lyr and *.mxd files published?
Scott Wisniewski's user avatar

1 2
3