Questions tagged [file-path]

For questions about paths to files and folders

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

Remove partial string (folder) from File path with Python

The documentation for ArcGIS Pro for updateConnectionProperties https://pro.arcgis.com/en/pro-app/2.8/arcpy/mapping/updatingandfixingdatasources.htm#ESRI_SECTION1_18159CA0096044608B406CA068794E30 has ...
user avatar
  • 452
3 votes
0 answers
45 views

Unavailable layer saved on computer as .txt file in my all projects (.qgz)

I have a problem with all my saved .qgz projects. I always worked with layers in projects only as .txt files, not saving them as shapefile, because I can make changes in .txt files (eg. add more ...
user avatar
1 vote
0 answers
22 views

ArcGIS Pro will not update datasource path change

I have many layers in a aprx file that need to have the path updated. I need to remove part of the string "UTARC." from the datasource path. Through Catalag View on ArcGIS Pro, when I type ...
user avatar
  • 21
1 vote
0 answers
18 views

Relative Path Links/Hyperlinks in ArcGIS Pro

Has anyone figured out how to use hyperlinks/relative links in ArcGIS Pro? This is what my links look like in ArcMap. The hyperlink lightning bolts are there. Here is what it looks like in ArcGISPro: ...
user avatar
1 vote
1 answer
25 views

GDAL Clip raster by mask layer can't see files on external drive

So I am using GDAL Clip raster by mask area. I tried clipping a temporary raster to mask area and started getting errors that an error had occurred creating the output file. It seems that the issue ...
user avatar
1 vote
2 answers
99 views

Python error handling opening a shapefile with fiona

I've written a python script where I read a bunch of files trying to catch various errors (FileNotFound, Import), for example try: df = pd.read_excel(os.path.join(path_to_data, fname_data)) except ...
user avatar
  • 113
1 vote
1 answer
23 views

FME linux path - cannot locate VRT

I am trying to transfer an FMW (FME workspace) script, using FME workbench 2020.2, from windows to linux (Redhat). In the FMW-script there are several published parameters. Among them there are 2 ...
user avatar
  • 11
2 votes
1 answer
349 views

QGIS 3.16.16 and Sharepoint

My company is transferring to using Sharepoint. Currently we are using a driver system. We think we might run into the problem that paths to sources we use will be linked to our personal account of ...
user avatar
  • 117
1 vote
1 answer
48 views

Why do I keep having to restore layer path names in QGIS?

Quite often I am having to restore the layer path names for many of my QGIS projects. The projects and the relevant shapefiles are all stored in a shared network that allows my colleagues to use and ...
user avatar
0 votes
0 answers
20 views

Path of raster QLR file disappears when moving it to another folder using QGIS

I need to send raster layer via mail with the right symbology. When someone opens the raster, it should be displayed with my saved symbology (singleband pseudocolor, if it matters). I saved my raster ...
user avatar
1 vote
0 answers
69 views

Use relative path in VRT with VSIZIP

I'm trying to load a GPKG file into QGIS by a VRT file. The vector is inside a ZIP. So I'm using the vsizip. I would like to use just relative paths. But when I try to load it, the new layer comes ...
user avatar
1 vote
1 answer
71 views

User database storage location (filename / path) in QGIS/Windows

I am using QGIS 3.16 and Windows 10. I have some custom CRS (cCRS). Now, I'd like to work on my QGIS Projects at another PC and want to move my cCRS there. According to the QGIS manual the cCRS are ...
user avatar
  • 427
0 votes
0 answers
23 views

How to create QGIS installer using innosetup

I installed QGIS 3.16 and add few plugins in it. Now I made installer of QGIS 3.16 folder using innosetup setup. I installed the software in another computer. But it gives following error while ...
user avatar
  • 1
0 votes
0 answers
58 views

Opening linked folder with QGIS Action from multiple computers and user profiles

I'm trying to link project folders to point features in QGIS. The goal is to open the relevant project folder in Windows File Explorer with an action. We use Dropbox, and I know I can create a Dropbox ...
user avatar
  • 9
2 votes
1 answer
268 views

Repairing multiple broken layer file paths in QGIS

I have moved all my QGIS layer files from C:// drive to One Drive, and I would like to re-map the old filepaths to the new drive. I know I can open the QGIS file as a text file and run a find and ...
user avatar
0 votes
0 answers
9 views

Why is all .gdb data displaying in GEO except one file feature class?

I am using the InformCAD and GEO products by Central Square Technologies to update our EMS maps with data I curated using ArcGIS 10.2. All of the data is collected in an .mpx file which is what GEO ...
user avatar
  • 123
2 votes
1 answer
135 views

Adding multiple layers from file list or command line in QGIS

Is there a way to add multiple layers to QGIS at once from a list of paths? I have about 150 rasters to investigate that intersect an area of interest. Their full path is collected in a text file, one ...
user avatar
  • 27.5k
-1 votes
1 answer
140 views

Getting name of shapefile from its path with PyQGIS [closed]

I am making a Plugin and I uploaded my shp file using my shp file path, how can I extract the name of the file from it? Example: D:/Qgis files/sub_folderName/FileName.shp I want to save the FileName ...
user avatar
0 votes
1 answer
67 views

Converting files in a specific folder specified by a relative path

I am writing a script to automate the process of converting a group of rasters, the fact is that I need to set a relative path, it will be used on different pc. But there is always an error [error-...
user avatar
0 votes
2 answers
172 views

Create list of shapefiles names from shapefiles in a folder, if folder does not contain shapefile type, print a statement stating this [closed]

I am creating a list of shapefiles names from files in a folder: items = os.listdir(r'E:/folder/test') print('checking directory...') print('your files are: ') print() filenames = [] for names in ...
user avatar
  • 413
3 votes
2 answers
335 views

Passing variable to URI filepath

I want to load CSV file to QGIS. It works if I use the strings below: uri ="file:///C:/Users/User/Desktop/Alex working/Tracks//Track.csv?delimiter={}&crs=epsg:25831&xField={}&yField={}...
user avatar
  • 31
0 votes
1 answer
59 views

Removing old logo filepath from layout view in ArcMap

I'm using a very old MXD in ArcMap. We have a wall map set up with symbology to show one type of our strucutres. The problem is that in our legend, our old company logo file path has replaced the ...
user avatar
7 votes
1 answer
155 views

Cannot select input layers for the "Polygonize" tool in QGIS

I am trying to convert a raster layer to a polygon layer using QGIS 3.16. 2. When I open the polygonize tool, the program does not allow me to select any existing raster layers from the 'Input layer' ...
user avatar
  • 185
0 votes
2 answers
30 views

Is there a way to allow user to change just the beginning of a path name in a toolbox for several parameters at once?

I am altering someone else's Python code to create a GIS tool that everyone can use. Currently, they have about 20-30 feature classes with paths to them in their code. The problem is that the ...
user avatar
  • 51
1 vote
0 answers
18 views

Use OS-specific file dialog to relink layer when file moves?

When I move a file out from under QGIS, of course I have to tell the program where it moved to. If you close a QGIS project and then move or rename a layer source file, you get a prompt when you ...
user avatar
2 votes
1 answer
67 views

Selecting file in Plugin

I want the toolbox to prompt out a file select window so that user can select the file and get the path to be used in my Plugin. Where do I start to code since I just have: def run(self): "&...
user avatar
1 vote
1 answer
98 views

Add Specific Map Layout Name to Document Path in ArcGIS Pro

In ArcGIS Pro (using 2.6.2), the <dyn type="project" property="path"/> dynamic text only provides the path of the entire project. It does not include the actual map or layout ...
user avatar
  • 452
0 votes
1 answer
293 views

QGIS points disappear after changing CSV file location, changing data source doesn't help

I moved my database and shape files, and wanted to relink them to my QGIS project. The shape file worked fine, but the CSV file wasn't reloading properly no matter what I tried. I could see the fields ...
user avatar
  • 103
-1 votes
1 answer
327 views

Getting path of file saved in memory or as temp file using PyQGIS

Whenever I do something like buffer in QGIS with Vector >> Geoprocessing Tools >> Buffer... the source output I get for my temporary file looks like this: That works fine if I'm doing ...
user avatar
0 votes
1 answer
47 views

How to fill out a field with a matching between an existing field value and a file name in QGIS?

I'm facing a big challenge. I need to fill out new fields using "Field Calculator" in QGIS. What do I need to load in those fields?: URL's containing the path to a image file (we can use the statement ...
user avatar
0 votes
1 answer
196 views

ModelBuilder layer name output is not unique

After using inline variable substitution in ArcGIS Pro ModelBuilder it generated the outputs that I wanted, but their layer names in the output were not unique. In the metadata tab, I can see that the ...
user avatar
3 votes
1 answer
712 views

Save processing modeler output layers to project folder/relative path?

I am building an algorithm in the processing modeler which takes a csv file as input and creates a number of vector layers as output. I would like to automatically save these layers in the same folder ...
user avatar
1 vote
1 answer
122 views

In ModelBuilder use Parse Path (path and name) to get output FC name

I built a model (in ArcGIS 10.6) and the Parse Path tool is working well if I using the Name type. But I need to use the input .gdb name also into the output feature class name. e.g. Inputs: C:\...
user avatar
  • 79
0 votes
0 answers
58 views

Using QGIS projects in a multi-OS environment

I am using QGIS on a variety of systems all of which access various file systems in my network, one of which contains my files, another contains my QGIS projects. Unfortunately, depending on the OS, ...
user avatar
  • 1
0 votes
1 answer
608 views

PyQGIS in standalone scripts on Mac, import error

Following the PyQGIS Developer Cookbook to use PyQGIS in standalone scripts. Fixed the initial errors by setting the PYTHONPATH and DYLD_PYTHON_PATH to the appropriate folders but am now faced with ...
user avatar
  • 139
2 votes
1 answer
240 views

Change layer path using PyQGIS

I have a QGIS Project with many raster layers. I need to change/repair all paths since I moved the original data to Another disk. layer = iface.activeLayer() old_path = r'D:/Somefolder_QGIS_200317' ...
user avatar
  • 51.4k
0 votes
1 answer
423 views

ArcGIS Pro - Open .aprx files to edit file paths

Two times a year a positional check of railway assets is performed in ArcGIS Pro for 21 different areas by receiving updated data. Every half a year in each area new data is automatically prepared in ...
user avatar
  • 494
0 votes
0 answers
76 views

Iterate Workspace not working in ArcGIS Pro ModelBuilder

I created a model in ArcGIS Pro that will delete features (ex. drainage areas) that intersect with unfeasible landcover classes within a raster (ex. impervious). So I used the following model ...
user avatar
  • 1
1 vote
1 answer
64 views

How to locate file path to original layers from feature layers in AGOL web map?

I was given an AGOL web map that was created by someone else within my organization that is no longer here, and I have no idea where the original editable layers in the web map exist on our network ...
user avatar
2 votes
1 answer
181 views

Open QGIS Project in both Linux/Windows

My company has workers that use Windows and Linux to manage a QGIS project. However, when we use the same project created in different operate systems the layers lose file paths. Is there ...
user avatar
2 votes
1 answer
562 views

PermissionError : [WinError 32] --> how to close raster file handler after use?

I created a function where I access to a Raster folder and get all files CRS for Rsubdir, Rdirs, Rfiles in os.walk(Rrootdir): for Rfile in Rfiles: ...
user avatar
  • 179
2 votes
1 answer
812 views

Changing location of plugin folder in QGIS 3?

I want to change the default location of the plugin folder in QGIS 3. The reason is that the default location is read-only, but I want to create and use self-made plugins. Can I change the location ...
user avatar
  • 53
1 vote
0 answers
91 views

Set up R in QGIS 3.4 on Mac OS X

I'm trying to get R into QGIS on my mac. I've installed the plugin "Processing R Provider plugin" but I can't "get R scripts from online scripts collection". It has something to do with the all caps "...
user avatar
  • 171
2 votes
1 answer
50 views

Create vector extents for PDF files exported within QGIS

I'm interested to create a vector point layer representing the centroid of some 500-1000 PDF files exported from QGIS to find PDFs geographically rather than file explorer. The algorithm 'Tile Index'...
user avatar
  • 2,089
1 vote
2 answers
258 views

Linking PDF file to a polygon shape with relative paths?

I´m looking for a solution to connect a specific PDF file to each polygon in my shape and to create an action to open the PDF. Relative paths are required. I am aware many people already asked this ...
user avatar
7 votes
1 answer
3k views

Open .qgz files to edit file paths

I have hundreds of QGIS projects that have been built over years and many different QGIS versions. Now I need to move them to another server and I want to be able to edit the project files to show the ...
user avatar
  • 1,185
16 votes
2 answers
2k views

Concatenating export path in Google Earth Engine

My goal is to store different exports from Earth Engine projects in separate subfolders of a main GEE_export folder on my Google Drive. I'm using Export.image.toDrive: Export.image.toDrive({ ...
user avatar
  • 3,353
2 votes
1 answer
100 views

Raster calculator - set default output path - QGIS 3.4.6

Raster calculator: How can I set the default output folder? By default it's set to "C:\Program Files\QGIS 3.4\bin" I'm using QGIS 3.4.6
user avatar
  • 161
1 vote
0 answers
20 views

Fixing document path during PDF export from ArcMap?

The document path on the side of my map changes when I export to PDF. The text says: "dyn type="document" property="path" It displays the filepath correctly when I'm editing the document (maps are ...
user avatar
  • 11
3 votes
1 answer
1k views

QGIS 3.4 Couldn't load SIP module. Python support will be disabled on Windows 10

I upgraded from QGIS 3.2 to 3.4 and bad things happened. On start-up I get the error. Couldn't load SIP module. Python support will be disabled. Traceback (most recent call last): File ""...
user avatar
  • 753