All Questions
146 questions
19
votes
2
answers
3k
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({
...
18
votes
4
answers
30k
views
Saving project with data source path as relative in QGIS?
Is there an option in QGIS to save the project with the data source being a relative path?
I don't see the option here. QGIS Wroclaw1.7.3
9
votes
2
answers
2k
views
How can I crawl directory tree and change Mxd relativePaths to true?
I have a large number of project folders where each project folder can have many subfolders. These subfolders can contain mxds, shapefiles, personal gdb's and fgdb's. In many cases the user forgot ...
9
votes
1
answer
4k
views
Relative path not working in QGIS with Google Drive?
I have a qgis file, referring to a few shp files, saved on a google drive folder which is synced across two computers using different OS, one is Mac OS X, the other Windows 8. So, the absolute path of ...
8
votes
1
answer
6k
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 ...
7
votes
4
answers
11k
views
Linking to external files with relative path in QGIS actions
Objective: I have point layers with attributes that contain paths to external files (Visio, AutoCAD dwg...). I want to put them all in one folder together with the project file, compress the folder ...
7
votes
3
answers
9k
views
Remapping layers in QGIS project to other folders?
I created a QGIS project containing several layers which are on my PC. I saved the project to my local drive and then I saved it to the network and copied all the relevent project layers into a folder ...
7
votes
1
answer
456
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' ...
7
votes
3
answers
2k
views
Full Network Paths In QGIS
Is it possible to use full network paths in QGIS rather than relative paths or drive paths? I use a remote desktop connection to log in to a machine where some QGIS work is done, however when ting to ...
6
votes
1
answer
96
views
Chaging default path for saving output layouts in QGIS
We work on a large number of projects and the file structure is normally the same so repeatedly browsing for the right location to save plans has issues. I would like to be able to change the default ...
5
votes
3
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 ...
5
votes
2
answers
3k
views
QGIS html annotation relative paths
I find the QGIS html annotation tool is very useful for quickly accessing a combination of key data attributes and photos. I am having trouble using relative paths for images.
This doesn't work:
<...
5
votes
1
answer
356
views
QGIS projects - collaboration on different platform
On my computer, I have both - Ubuntu and Windows - operating systems.
Since I work on both of them and QGIS save path to particular layers using absolute path, it's very inconvenient to store ...
5
votes
2
answers
898
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 ...
5
votes
1
answer
3k
views
Map tips and the use of relative paths
I am trying to set up a GIS database in QGIS (2.16.1) containing some geological information. I've created a shapefile (polylines) and added a map-tip to it which displays a cross-section related to ...
5
votes
1
answer
765
views
How can I make new QGIS projects use absolute path by default?
New QGIS projects are saved with relative path location for data sources by default.
If you want to use absolute path, each time a new project is created, this setting needs to be changed in the ...
5
votes
1
answer
2k
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 (...
5
votes
1
answer
814
views
Set default for folder parameter in QGIS processing scripts
In QGIS processing scripts we can define a folder as input parameter as follows:
[...define input/output parameters...]
##mypath=folder
[...rest of the script...]
Question: Is it possible (and if ...
4
votes
2
answers
702
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={}...
4
votes
1
answer
577
views
Changing QGIS system SVG path with PyQGIS
I am trying to change the SVG path with Python but I couldn't find any document which explains how to do this. This is what I want to do. I Added SVG symbols to my plugin in a specific folder. When ...
4
votes
2
answers
2k
views
Using timestamp in text format published parameter of FME?
I have an FME workspace (FME 2015.1) that creates an output file, let's say result.xslx. What I would like to do is to build up the output file name from various parameters, e.g. the project name and ...
4
votes
2
answers
3k
views
Retrieving Full Path to Feature Class in ArcMap
I often need the full path to various feature classes so that I may insert them into a Python script. I have been using ArcCatalog for this by copying the path in the Location bar for a given feature ...
4
votes
1
answer
311
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 ...
4
votes
1
answer
802
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'
...
4
votes
1
answer
405
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,...
4
votes
1
answer
978
views
How can I use relative paths in print composer for images?
I'm sharing an entire map project with a client so they can eventually print off an atlas. I've managed to get all the layers and icons to work correctly with relative paths, but the atlas contains ...
4
votes
2
answers
2k
views
Ensure relative path in Arcgis layer files
I'm looking for the arcgis python equivalent of the VBA How to save a layer file with a relative path.
I'm using a script to change the paths in a collection of about 75 layer files before ...
4
votes
1
answer
2k
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 ...
4
votes
0
answers
194
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 ...
3
votes
2
answers
7k
views
Hyperlink relative paths to files in points layer in QGIS?
I would like to add hyperlinks to each point in a points layer in QGIS 1.7.0 running on Mac OS X 10.6.7, but I have several requirements:
(1) Each hyperlink has to be a relative path to the linked ...
3
votes
2
answers
3k
views
How to get raster layer name in GDAL?
I have a path of a raster layer. I want to get name of this layer in GDAL.
In below code I want to get aa.tif
from osgeo import gdal
dataset = gdal.Open("/Data/raster/aa.tif")
print dataset.GetName()...
3
votes
2
answers
3k
views
Automating relative filepath when adding new toolbox to arcmap catalog?
I'm creating an arcpy script for a custom toolbox and I want to make it so that a user can essentially utilize the script in that toolbox without having to change the source path (which I made ...
3
votes
1
answer
4k
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 ...
3
votes
1
answer
2k
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 ""...
3
votes
1
answer
2k
views
How to avoid updating PATH by copying SIP module to appropriate directory
I continue to have very time-consuming problems with import statements in the Python scripts that I attempt to write.
In this particular script, I want to use QGIS functionality, and so it begins:
...
3
votes
2
answers
634
views
How to deal with data-defined SVG paths in a project used on Windows and Linux?
I have a project QGIS used in both Linux and Windows, synchronizing the working directory with dropbox. The project uses relative paths, so that the directory structure is observed only from the ...
3
votes
1
answer
267
views
Setting relative paths for KMZs in Arc2Earth dialog?
Using Arc2Earth, I'm converting a large vector dataset to a KML with regions.
The resulting kmz works great on my computer but the files paths are all actual paths and not relative, so they don't ...
3
votes
0
answers
231
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 ...
3
votes
0
answers
144
views
Why are the layer-tree-layer source attributes absolute even if my project is set to relative paths?
When I save a group as a layer definition file (both from the context menu and via the python api) the
layer-tree-layer source attribute is incorrectly absolute:
source="/Volumes/gis/master/Raster/...
2
votes
2
answers
206
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 ...
2
votes
2
answers
1k
views
Earth Engine: Evaluating ee.Number in file path
In the Earth Engine code editor, I'm trying to load an image using a variable in the file path. In my full code I'm passing a variable (call it "id") into a function, and am trying to use "id" in a ...
2
votes
3
answers
3k
views
Error when path contain spaces - Arcpy Integrate
I'm using a simple script to run Integrate tool in a default gdb and feature class, where user can indicate the path where this gdb is located.
This script works well when path indicated by user don'...
2
votes
1
answer
3k
views
Set Relative Hyperlink to open windows explorer using Actions in QGIS
I am wondering how to solve this problem I am having. I am trying to make an action in QGIS when I click on my feature, windows explorer will display the folder for that feature. I have the folder ...
2
votes
1
answer
1k
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 ...
2
votes
3
answers
481
views
FME statistics on Tester Conditions
I'm using FME to look at a large directory and filter down through many factors to handle the data within the directory.
One of the stages I am working on is to search for companies that own the data....
2
votes
1
answer
231
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 ...
2
votes
2
answers
865
views
Saving LAZ files to different location from input (LAS) files? [duplicate]
All of the command line examples I'm seeing show how to create LAZ files in the same folder as the LAS files, e.g.:
C:\Folder\tools>laszip F:\Folder\LAS_points\*.las
Unfortunately, I don't have ...
2
votes
1
answer
830
views
QGIS 2.18 - How to reference a svg symbol which is in the qml file's directory?
Relative path for svg symbols in .qml files works as expected if the svg file is in another directory than the .qml file's.
Example :
<prop k="name" v="../icons/symbol.svg"/>
However, if the ...
2
votes
2
answers
695
views
Specifying a file for VirtualShape in SpatiaLite [closed]
I'm fairly very new to spatialite, and am stuck on something very basic.
I'm creating a virtual table from a shapefile using virtualshape. This works fine when the shapefiles are in the same folder ...
2
votes
1
answer
444
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 ...