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
0answers
24 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 ...
0
votes
0answers
9 views

arcgis pro labels disappear when importing symbology from .lyr file

I normally work with ArcMap 10.5 on a desktop, but with working from home have been using ArcGIS Pro 2.4. I had previously exported .lyr files of some layers from ArcMap and saved them to the laptop ...
3
votes
1answer
44 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\ ...
3
votes
1answer
493 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 ...
0
votes
0answers
72 views

Creating layer file using C#

Is there a C# library which can be used to programmatically create a .lyr file? (Compatible with Esri products) Using NetTopologySuite I've created a shapefile which contains some squares. I'd like ...
0
votes
0answers
20 views

ArcGIS, reproject a PostGIS feature class causes the LYR file to show the feature class as empty

My client has ArcGIS 10.2 and PostGIS with features classes in them. They also have a lot of LYR files that point to these features classes. When I reproject the features classes in PostGIS, the LYR ...
2
votes
1answer
109 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 ...
1
vote
1answer
49 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 ...
0
votes
0answers
36 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 ...
0
votes
1answer
61 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....
2
votes
2answers
50 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 ...
2
votes
0answers
113 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 ...
0
votes
1answer
100 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 ...
0
votes
1answer
63 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 ...
3
votes
2answers
283 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 ...
0
votes
1answer
34 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 ...
1
vote
0answers
100 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 ...
1
vote
0answers
97 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. ...
3
votes
0answers
142 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 ...
1
vote
2answers
70 views

Saving layer files and ignoring special characters using ArcPy/Python?

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 ...
0
votes
0answers
34 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". ...
0
votes
0answers
50 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 ...
2
votes
0answers
594 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 ...
2
votes
0answers
76 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 ...
0
votes
2answers
44 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 ...
0
votes
1answer
156 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 ...
1
vote
1answer
258 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 ...
2
votes
0answers
3k 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 ...
0
votes
2answers
124 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 (...
1
vote
0answers
88 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?
0
votes
2answers
536 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....
2
votes
0answers
380 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 ...
1
vote
1answer
53 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 ...
1
vote
2answers
75 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 ...
0
votes
1answer
51 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 ...
0
votes
2answers
113 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 ...
1
vote
0answers
46 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 ...
2
votes
0answers
969 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 ...
1
vote
0answers
398 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 ...
1
vote
1answer
568 views

Apply Symbology from Layer Not Working in Script

I am working on applying symbology to multiple layers from lyr files for multiple MXDs within the IDE. I have been able to access the MXDs and iterate through and change the definition of "mxd". I am ...
1
vote
1answer
487 views

Creating .lyr file to import symbology using ModelBuilder?

I am trying to create a .lyr file in order to import symbology to a .shp file. The ESRI link says to use ModelBuilder to do this, but I am having trouble understanding the directions bc I haven't used ...
-1
votes
1answer
726 views

How to extract data of lyr. to shp. file by map extent [closed]

I have a lyr. connect to a state scale data source. Is it possible to download all the data within the map extent and save as shp. file to my local drive?
1
vote
1answer
279 views

How to get the server address of the ArcGIS lyr. file

I have a lyr. file and want use the content in QGIS. So my question is how can I check where this lyr. linked to. I don't need the style just want data itself.
1
vote
2answers
256 views

Import .lyr files into Cesium?

I have an application that is able to import .lyr files into a Cesium map if they are bundled with all the required associated files in a zip file. The application treats the bundled files in the ....
1
vote
0answers
187 views

How to use ESRI 'Ecological Land Units' in QGIS?

I am trying to use the Map of Global Ecological Land Units – An Ecophysiographic Stratification Approach (2014) in QGIS. I downloaded the World ELU 2015.zip from https://rmgsc.cr.usgs.gov/outgoing/...
0
votes
1answer
62 views

Connecting .lyr and shapefile query

How do I add or join a .lyr to a shapefile? I have a shapefile of a city's zoning districts and, separately, the .lyr, which shows the correct colors for each zoning classification. Based on ...
1
vote
1answer
872 views

Exporting layers from MXD to geodatabase maintaining same TOC structure?

I have imported several shapefiles from different sources and have set up an MXD project with groups and subgroups of layer. I want to export the layers to a geodatabase while maintaining the same ...
1
vote
1answer
113 views

Cannot convert OneGeology KML to layer file in ArcGIS Desktop?

I downloaded and saved a KML file of Indonesian geology from OneGeology Portal (http://portal.onegeology.org/OnegeologyGlobal/). However, when I use the KML to Layerfile tool in ArcGIS, the tool does ...
2
votes
1answer
182 views

Keeping symbology and labels sync'd between data frames in ArcGIS Desktop?

ArcGIS 10.3.1 for Desktop I have an mxd file with nine different frames of essentially the same data (just displaying different layers in each map). These maps all include hospitals (as a point file)....
1
vote
2answers
57 views

Layer 'save as' file displaying wrong/original name in TOC

I'm running ArcMap 10.3 and trying to create a new copy of a layer in my map document, which I can do, but when I load the new copy back into my map, the TOC displays its name as the old file from ...