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
0 votes
0 answers
17 views

Saving layers from ArcSDE to layer file using ArcMap

I have an MXD with layers sourced to SDE feature classes. I am trying to save the layers as layer files. However, I can't get arcpy.SaveToLayerFile_management to do its job. Here's the code I use in ...
user avatar
-1 votes
1 answer
25 views

Creating one single lyr from two [closed]

I have two lyr and I want to create one single lyr (I want to unite into one). Is it possible?
user avatar
0 votes
0 answers
13 views

How to exchange QGIS legend symbology into ESRI ArcGIS? [duplicate]

Is there a possibility to import the legend symbology, which has been created in QGIS, to Esri ArcGIS? Or a possibility, to create a .lyr file from QGIS?
user avatar
  • 1
0 votes
1 answer
51 views

Reading .qlr (QGIS file definition layer) in ArcGIS Pro

Is there any way to open a .qlr file (layer definition in QGIS) in ArcGIS Pro? If not, is there any workaround to export my QGIS symbology to Pro?
user avatar
  • 31
0 votes
0 answers
28 views

ArcGIS Pro: dragging lyr-file from folder in project creates 20 missing data sources

I dragged "Fastighetskartan.lyr" into the map. It now shows up missing 20 data sources - even though the data source is the bs_get.shp in the same folder as the lyr-file. How come this ...
user avatar
  • 57
1 vote
0 answers
32 views

Getting .tiff files from ArcMap

I'm new to ArcGIS. I was given a map document that is composed of many .tiff files in .lyr format (it's only 4kb in size, so .tiff files are stored on some external server). Is it possible to export ...
user avatar
1 vote
0 answers
43 views

Blank screen when displaying vector file from spreadsheet in QGIS

I have a spreadsheet plugin installed. The Excel spreadsheet has coordinates in Australia's national grid GDA94 zone 56 which are metric. I open the Excel file and use the geometry button and ...
user avatar
1 vote
0 answers
24 views

Points dataset legend to polygon dataset

I'm working with ArcMap 10.5.1 I have a point dataset in a gdb, with a particular legend. The color in the legend represent the area of effect that intersects that point. I also have a polygon dataset,...
user avatar
  • 67
0 votes
1 answer
116 views

Adding raster file from file geodatabase to .lyrx file using ArcPy

I have a file from a file geodatabase, which contains all raster files, that I want to save to an already existing layer file. I am using ArcGIS Pro. I am trying this like so: import arcpy import os ...
user avatar
2 votes
0 answers
35 views

Is there a way in QGIS to display vector files on a shared drive without others being able to edit the file?

So just like lyr-files in ArcGIS. I have read that qlr-files are QGIS answer to lyr. But as far as I can see when I try, the receiver can edit in the main source of the data through the qlr-file. So ...
user avatar
0 votes
0 answers
55 views

No download Option

I am using Modis-13A2 in USGS earth Explorer but I am unable to download its GeoTIFF file because download option is not available kindly guide me. ]1
user avatar
4 votes
2 answers
414 views

Can .lyr files be used without shapefiles?

I've been sent some .lyr files, with no associated shapefiles. I'm using QGIS, so it seems I need to try some conversions to get these to work anyway - but I just wanted to check before I embark on ...
user avatar
  • 499
2 votes
1 answer
1k views

Converting a layer file (*.lyr) to a QGIS compatible file without using ArcGIS

I have some .lyr files and I need to be able to open them in QGIS. I don't have access to ArcGIS so I need to convert those files to another format compatible with QGIS (.qlr, .xml, .sld, .style,...) ...
user avatar
  • 21
1 vote
0 answers
36 views

Can ArcGIS Desktop read any open source layer definitions?

I am looking for a non-proprietary way to store layer symbology for both vector and raster layers and then load those layers in ArcGIS Desktop 10.x. I have used layer files for this purpose for many ...
user avatar
  • 645
6 votes
1 answer
101 views

Save layer file with different Definition Query with ArcPy

I would like to save a new layer file with different definition query, but receive TypeError: 'unicode' object is not callable. import arcpy lyrFile = arcpy.mapping.Layer("\path to layer file\ ...
user avatar
7 votes
3 answers
4k views

Converting lyrx file or style manager stylx file from ArcGIS Pro to ArcMap

Is there a way to either convert a lyrx file or the style manager stylx file from ArcGIS Pro 2.0 into anything that can be used in ArcMap 10.5? I have symbology for about 100 items in ArcGIS Pro ...
user avatar
2 votes
1 answer
524 views

Extracting/processing raster information from .lyr or .kmz file

I have a raster which is stored as a .lyr file, which I got from the following source: http://forestrymaps.alaska.gov/arcgis/rest/services/Rasters/AK30mSlope/MapServer When I open it in ArcMap I ...
user avatar
  • 41
1 vote
1 answer
377 views

Split vector by field name and rename output files according to field value

I have a shapefile with several features and want to split the layer into separate shapefiles. I looked into similar questions recommending Split Vector Layer. However, I could not find a way to ...
user avatar
  • 892
0 votes
0 answers
41 views

Replacing data source for group layers from FGDB to ArcSDE with different file names

Being a recent graduate and just started working I'm fairly new with Python, but I'm trying my best to learn and I find it really fun and useful! However, I'm stuck with a problem I can't seem to ...
user avatar
0 votes
1 answer
129 views

Dataset does not exist or is unsupported SaveLayerToFile

I am trying to save a layer from an MXD to a lyrx file in a geodatabase using ArcGIS Pro. aprx.importDocument(current_document_name) mlist = aprx.listMaps() infra_layers = mlist[0].listLayers() arcpy....
user avatar
3 votes
2 answers
501 views

Keeping constant shapefile symbols

I am using ArcGIS 10.1, I am just wondering if there is a way to maintain constant the selected symbols for some shapefile. The scope is to use the same shapefile with the same chosen symbols also in ...
user avatar
  • 71
2 votes
0 answers
204 views

Transferring layer files from ArcGIS Pro to QGIS [duplicate]

I have access to ArcGIS Pro at my workplace and will be transferring a project over to someone who will be using QGIS. I have saved my layers as a layer file but the problem is that the other person ...
user avatar
  • 21
0 votes
1 answer
790 views

Opening/loading layer file in ArcPy?

I ran a script for location allocation on ArcPy, which worked. After running it, I used the Save to Layer File to save the result. Now that I have the result saved (and can even open on ArcMap), I ...
user avatar
0 votes
1 answer
152 views

Add Layer Failed

I am having an issue after my IT department changed my user login profile info. Everything works fine except for a bunch of layer files we use that reference imagery services. Everytime I try to bring ...
user avatar
  • 89
4 votes
3 answers
2k views

Opening ArcGIS Pro layer in ArcMap?

I received a layer package (lpkx) from a client. Finding out I couldn't open it in ArcMap led me to discover that this is a newer version of the software (ArcGIS Pro). I managed to install that and ...
user avatar
  • 150
0 votes
1 answer
38 views

Using ArcMap Group Layer? [closed]

I am working with multiple grouped layer files that when in the layer file they do not have any of the normal properties. For example, when I click on the properties for an individual layer within the ...
user avatar
  • 89
1 vote
0 answers
387 views

Layer files not drawing properly in ArcMap? [closed]

I have a co-worker who had his windows user credentials changed after coming on full time. After this change we noticed an issue with a series of layerfiles not drawing properly when brought into ...
user avatar
  • 89
1 vote
0 answers
291 views

Importing/downloading symbology from ArcGIS Online using ArcPy?

I am currently attempting to create a script to download shapefiles from ArcGIS Online to my local drive before adding it to an aprx project and thereafter uploading it to a ArcGIS portal/enterprise. ...
user avatar
  • 27
3 votes
0 answers
527 views

How to import QGIS layer definition files without losing value relation settings?

QGIS allows groups of layers to be saved as a 'layer definition file'. Where one layer in that group references another - using a 'value relation' widget on its attribute form - these setting are ...
user avatar
  • 2,860
1 vote
2 answers
211 views

Saving layer files and ignoring special characters using ArcPy

I'm trying to save all layers in my ArcMap mxd as .lyr files using the script below. However, I'm getting an error because some group layer names contain special characters (e.g. © : * ) and cannot ...
user avatar
  • 93
0 votes
0 answers
73 views

Apply .lyr Symbology To Layer Names That Meet if Condition

I am trying to create a script that applies a layer style from .lyr file to layers in my table of contents that meet a certain criteria. The criteria being the layer name must contain string of "x". ...
user avatar
  • 131
0 votes
0 answers
61 views

Feature templates do not change when using LYR file and PostgreSQL?

We just started migrating from SQL Server to a PostgreSQL Server for production. Traditionally, we load a LYR file containing all of our symbology, then point it to our new GDB on the SQL Server. If ...
user avatar
  • 5,727
2 votes
0 answers
1k views

Batch converting .lyr to .qml?

I am looking for ways to make .lyr files usable in QGIS. It appears that they can be converted into an .sld file in ArcMap but according to one of the posts, they only store symbology and do not point ...
user avatar
  • 21
2 votes
0 answers
95 views

How do Joins & Relates in layer file and Layer Properties work?

I'm using ArcMap 10.5. I set up symbology for a feature class based on joined attributes from a table in the same file geodatabase. I want to be able to apply the same set-up in different geodatabases ...
user avatar
0 votes
2 answers
122 views

Retrieving Layer Files From Map Packages

I am using ArcMap 10.5. I have around 57 map packages that I need to salvage layer data from. The layer files were incorrectly saved with absolute paths instead of relative paths so they won't ...
user avatar
0 votes
2 answers
117 views

Providing multiple shapefiles belonging together in single file with predefined symbology in ArcGIS Desktop?

There are multiple shapefiles which belong together and should be provided in a single file with predefined symbology (see figure). Is there an option to do so? Currently, the shapefiles are bundled ...
user avatar
  • 301
0 votes
1 answer
232 views

Using script to list .lyr files with broken links?

I would like to identify within a particular folder the .lyr files that have broken links. Some of these files are within multiple folders but all fall within one folder. My programming knowledge is ...
user avatar
  • 83
1 vote
1 answer
821 views

arcpy.mp.LayerFile() OSError

I'm new to GIS programming, and am going through the Esri "Getting Started with arcpy.mp" tutorial. When I try the following: lyrFile = arcpy.mp.LayerFile(r"path to a layer file") I get the ...
user avatar
2 votes
0 answers
6k views

Using .lyr files in QGIS

I'm trying to use a publicly available data set (the Australian National Vegetation Information System) in QGIS, but it has been set up for use in ArcGIS (.lyr file). I tried to convert the file ...
user avatar
  • 31
1 vote
2 answers
335 views

Using ArcPy to produce lyr files pointing at geopackage?

I have hundreds of lyr files with a complex tree structure containing both layer groups and nested layers. What I would like to achieve is to grab each lyr files, iterate through every single layer (...
user avatar
1 vote
0 answers
157 views

Using Esri .lyr data in QGIS? [duplicate]

is there any possibility to use an Esri .lyr data in QGIS? Maybe a tool to convert the file into a xml or sld?
user avatar
0 votes
2 answers
1k views

Error 000732 - Input Layer "does not exist or is not supported" when using 'ApplySymbologyFromLayer_management'

Using Arc 10.2 I am getting the following error message... ExecuteError: Failed to execute. Parameters are not valid. ERROR 000732: Input Layer: Dataset Q:\Data\Infrastructure\Infrastructure....
user avatar
  • 1,187
3 votes
1 answer
886 views

Adding feature class and applying symbology in ArcGIS Pro using ArcPy?

Using an ArcPy script run from a toolbox, I want to import a feature class from a geodatabase into an ArcGIS Pro 2.1.2 map and then symbolise that layer based on a lyrx file stored on disk. Here is a ...
user avatar
  • 121
1 vote
1 answer
89 views

Exporting lines of .lyr file using ArcPy?

After I finished make an OD cost matrix layer with function outNALayer = arcpy.na.MakeODCostMatrixLayer(inNetworkDataset, outNALayerName, impedanceAttribute, 15, "", accumulateAttributeName) the ...
user avatar
  • 13
1 vote
2 answers
260 views

Find and replace layerfile paths

Is there a way I can find and replace all layerfile paths in a folder? I have over 150 layer files that have incorrect paths after a server migration changed the path of the layerfiles. I have found ...
user avatar
  • 89
0 votes
1 answer
65 views

ERROR 000732 in code to Save shape as .lyr?

I am using a code (modified from Midavalo) to save .shp files as .lry files. The code runs well and displays the .lr files in the table of Contents. However, the Python displays Runtime error. On the ...
user avatar
0 votes
2 answers
172 views

Preserving legend format in .lyr file

Is there a way to preserve the format of the legend in an .lyr file in ArcMap? The legend is simple - bold layer name atop the symbol with no label or description. When I save it as a .lyr file, it ...
user avatar
  • 25
1 vote
0 answers
50 views

"Spatial Match" analogue in ArcMap?

My question is about reverse geocoding addresses over a large area from a set of points or polygons in ArcMap. I know from previous experience that Alteryx with the Spatial Match tool allows one to ...
user avatar
3 votes
0 answers
2k views

Convert .qml to .lyr [duplicate]

I am working on a project with two different teams, each working with a different GIS software package: QGIS and ArcGIS. I am trying to convert my QGIS layout to ArcGIS, so the team with ArcGIS can ...
user avatar
  • 323
1 vote
0 answers
431 views

SQLite / Geopackage and saving Geometry in ArcGIS

Has anyone successuflly created a layerfile (ArcGIS 10.4) to a dataset/table stored in a SQLite or Geopackage file? Process of creating Layerfile: ArcMap TOC > Change Symbology > Right click > Create ...
user avatar
  • 339