Questions tagged [file-path]

For questions about paths to files and folders

Filter by
Sorted by
Tagged with
3 votes
1 answer
97 views

"Could not load source layer for INPUT" error when reprojecting flt-file with PyQGIS

The data I have are ESRI Floating Point Data (so they are a raster type). The path I provided is a fake path, so that I don't show my real system paths. I know that my code works with vector data, as ...
i.i.k.'s user avatar
  • 1,271
0 votes
0 answers
13 views

Copying data from server to my project to prevent broken links and altering original data?

I recently started at a new company and am working on updating their trail maps. The GIS database that I have inherited is quite the mess. I am using ArcGIS Pro and I keep running into broken data ...
Jess's user avatar
  • 9
0 votes
2 answers
65 views

Referenced ArcGIS Pro 3.1 toolbox renamed and empty toolbox created in its place

GIS program manager here. I am experiencing a serious problem. It occurs when starting new projects in ArcGIS Pro from a template which includes our "program toolbox" (aka Default.tbx) ...
jpartsch's user avatar
1 vote
0 answers
53 views

SAGA cannot load any grids

Whenever I try to use a SAGA processing tool in QGIS which requires loading a file, it fails to load the files. The log message says: Loading grid: [PATH] failed. The tools I've attempted to use ...
Jacky's user avatar
  • 11
1 vote
0 answers
34 views

sen2r file path error (UPDATED)

UPDATE: I think I've solved the problem. I created a bogus temp folder for my nonexistent L1C images l1c_safe<-tempfile(pattern = "safe_") and passed this to the path_l1c= argument. I ...
gcost's user avatar
  • 11
0 votes
0 answers
18 views

Change QGIS project option "Save paths" to absolute with Python

We have many existent project saved with "save paths" option to relative. Therefore, sometimes projects had difficulties to find network folder with this parameter and QGIS become very slow. ...
Alain's user avatar
  • 1
-2 votes
1 answer
435 views

Load layer from SharePoint (or online office server) with https://... URL

I'm trying to import a .csv layer from a SharePoint folder without using the local path (for ex: C:*Users*\UserName\Folder1\filename) but using the online path (https://.../filename). I need this ...
federico sperati's user avatar
0 votes
1 answer
50 views

Extracting points on linestring based on time since from startpoint (sf)

I have a series of nodes connected by paths currently imported in sf. Each node has a date-time associated with it. For example: library(sf) library(ggplot2) path <- st_as_sf(data.frame(X = c(145,...
Thomas Moore's user avatar
4 votes
1 answer
250 views

Setting relative path for PDF linking to shapefile in QGIS

I am trying to link a PDF for a shapefile, but I'm unable to set a relative path. How can I set a relative path in QGIS? I am only able to open the PDF in my PC, whereas when share this file to others,...
VENKATA RAVIKIRAN's user avatar
2 votes
2 answers
154 views

Getting the file path of layer based on layer name using PyQGIS [closed]

So this is my folder: It contains GeoPackages with the format yyyymmdd_progress.gpkg I want to take the latest GeoPackage based on the latest GeoPackage created and stored in the folder, then use it ...
charliey's user avatar
  • 163
2 votes
1 answer
120 views

How to set save location to 'CURRENT' GDB in ArcGIS Pro Tasks

I'm new to authoring tasks, and now that I'm attempting to use my task in a second project, the saves are being directed to the GDB I was in when I created the Task. How can I dynamically assign save ...
joechoj's user avatar
  • 443
0 votes
1 answer
457 views

Give a path of Google Drive to which Google Earth Engine should export the file to

My question is similar to this one, with the only difference that: the question in the link above is 3 years old I have one main Folder, inside that folder, I have 11 subfolders, and inside each of ...
Nikos's user avatar
  • 968
5 votes
2 answers
396 views

Batch replacing of layer file paths in QGIS

I reorganized my shapefiles folders. Now the layer file paths are broken. I have tried the solutions shown in the QGIS User guide (chapter 6.2), but: I don't want to process my layers individually ...
greg's user avatar
  • 55
4 votes
0 answers
133 views

Using an input string in a file path for a input vector layer in QGIS model

I am building a QGIS model to perform field calculations on a large number of .shp files containing environmental information of different waterbodies. This model should be global for the different ...
Leesbiology's user avatar
0 votes
0 answers
68 views

Change path for QgsAction icon in PyQGIS

I added a QgsAction in my layer style, but when I share this style to other users, the path to the icon is written in absolute. I watched QgsAction doc (here) and it doesn't seem to be a setIconPath(),...
dmjf08's user avatar
  • 1,233
2 votes
2 answers
423 views

In QGIS/QField, how to maintain photo attachments in a sister directory to a project? (Or, possibly, why this is a Bad Idea)

In order to not have to copy all the photos for my project every time I synchronise (which is beginning to take a significant amount of time), I would like to keep them in a separate folder, perhaps ...
Avery Andrews's user avatar
1 vote
2 answers
340 views

Verify feature class path in file geodatabase using GDAL with Python

Suppose I have a geodatabase in C:/MyDir/MyGDB.gdb. I am working outside of the Esri/ArcPy environment, primarily using gdal and os libraries. I want to retrieve and verify the file path of a feature ...
gwydion93's user avatar
  • 1,903
4 votes
1 answer
1k views

Create dynamic filename, based on attribute value, for output of QGIS model

Basic idea Every user running a model selects a folder where the output of the model, a raster, should be stored as a file. The filename should be created automatically, based on an attribute value (...
Babel's user avatar
  • 70.4k
0 votes
1 answer
423 views

Reading multiple rasters in folder

the rasters in that folder has dates in the naming (for eg. T43RGP_20220330T052639_NDVI) and I want the code to read the rasters one by one in the increasing order of the date. Help me complete this ...
surdeep's user avatar
  • 51
2 votes
0 answers
106 views

Assign absolute path to single layer in QGIS

Under Project Properties, I set path savings to 'relative', as the project is used by different people and moved between network drives. Shapefiles that move with the project are correctly located in ...
Maaldersmul's user avatar
0 votes
1 answer
293 views

How to access some Server's folder in QGIS

Somehow access some file from server in QGIS is so easy just drop in your QGIS project. But some case you need access your server from QGIS "search directory" then your server is did not ...
Damar Panoto's user avatar
0 votes
2 answers
183 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 ...
sparky's user avatar
  • 450
3 votes
0 answers
189 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 ...
Michaela Uhrová's user avatar
2 votes
1 answer
306 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 ...
Juliana's user avatar
  • 31
2 votes
0 answers
834 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: ...
mizzou14's user avatar
1 vote
1 answer
105 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 ...
Alexander Audet's user avatar
1 vote
2 answers
5k 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 ...
konstanze's user avatar
  • 133
1 vote
1 answer
50 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 ...
Niels's user avatar
  • 11
3 votes
1 answer
3k 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 ...
ASanders's user avatar
  • 157
1 vote
1 answer
369 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 ...
George_Forester's user avatar
1 vote
0 answers
306 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 ...
MarceloBaliu's user avatar
1 vote
1 answer
296 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 ...
jaysigg's user avatar
  • 497
2 votes
1 answer
848 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 ...
Mr Magoo's user avatar
2 votes
2 answers
678 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 ...
matt wilkie's user avatar
  • 28.2k
-1 votes
1 answer
478 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 ...
Varin Anand's user avatar
0 votes
1 answer
147 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-...
Владислав Александров's user avatar
0 votes
2 answers
936 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 ...
hbk's user avatar
  • 434
3 votes
2 answers
619 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={}...
Aleks's user avatar
  • 31
0 votes
1 answer
176 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 ...
Irrigation_GIS's user avatar
7 votes
1 answer
363 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' ...
jserv's user avatar
  • 195
0 votes
2 answers
64 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 ...
hosta's user avatar
  • 83
1 vote
0 answers
33 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 ...
Alan Harper's user avatar
2 votes
1 answer
544 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): "&...
Wilson Chin's user avatar
1 vote
1 answer
309 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 ...
sparky's user avatar
  • 450
1 vote
2 answers
539 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 ...
fadelm0's user avatar
  • 113
-1 votes
1 answer
799 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 ...
EnGIsNowhere's user avatar
0 votes
1 answer
96 views

Filling out field with matching between existing field value and file name in QGIS

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 'base_file_name'). ...
Geografisica's user avatar
0 votes
1 answer
382 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 ...
Brooklyn_95's user avatar
5 votes
2 answers
2k 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 ...
bovsorrr's user avatar
  • 101
1 vote
1 answer
401 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:\...
GisT's user avatar
  • 81