Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [file-path]

For questions about paths to files and folders

1
vote
0answers
12 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 ...
0
votes
0answers
98 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 "", line 1,...
0
votes
1answer
17 views

Retreiving Layer Files From Map Packages

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 display unless they are opened ...
1
vote
2answers
93 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 ...
0
votes
1answer
132 views

Will using Zee Drive affect the performance of QGIS [closed]

At our company we are thinking of moving from a server to our local machines with Sharepoint. Zee drive would be implemented to act as an interface for all our files, including our geospatial data. ...
1
vote
0answers
54 views

Is there any way to read raster path in POSTGRES and bring to QGIS screen

.qlr or .vrt files contain a list of raster files path such as : 'C://raster/NYK.tiff'....'C://raster/CAL.tiff'.... etc... QGIS displays them by reading the embedded paths. I would like to store ...
2
votes
3answers
64 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....
4
votes
2answers
818 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 ...
1
vote
2answers
369 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()...
2
votes
1answer
211 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 ...
1
vote
1answer
172 views

qgis2web pop up image — path definition

I have consulted the post on GIS stack exchange and read the docs, however I cannot find a solution that works. The idea is to put a .png image of a site report within the maplayer for web output. ...
2
votes
3answers
686 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'...
1
vote
2answers
46 views

Why is the mxd property “Pathnames” disabled?

I have an .mxd that is using absolute pathnames. I want to change this property to use relative pathnames but the option is disabled, grayed out, when I go to the .mxd properties. It is actually ...
0
votes
2answers
333 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 ...
-1
votes
1answer
303 views

Pycharm Couldn't recognise QGIS 2.8.11's python 2.7.5 packaging tools. win 7

using "C:\Program Files\QGIS 2.18\bin\python.exe" for my project interpreter in pycharm and, path variables as : PYTHONHOME = "C:\Program Files\QGIS 2.18\bin" PYTHONPATH = "C:\Program Files\QGIS 2.18\...
3
votes
0answers
82 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/...
0
votes
1answer
344 views

TerrSet Errors - Data Path Not Found

I've been trying to struggle through Terrset but just can't get it to do what I want. I initially had problems downloading the files from geoexplorer but seem to have figured that out. The problem now ...
3
votes
1answer
292 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 ...
0
votes
0answers
483 views

QGIS 2.18 python error

I very new to all the python-QGIS issue. I try to run this one line code in order to know if the PYTHON 2.7 recognize the modules of QGIS: import qgis.core and got this error: Traceback (most ...
2
votes
3answers
324 views

Moving MXD to different folder without breaking links using ArcPy? [duplicate]

I was wondering what was the equivalent of "Save As" in ArcPy, which works perfectly fine in ArcMap. As the MXDs are currently set up with relative path moving MXD would break the links, however if ...
1
vote
1answer
208 views

Getting catalog path from IFeatureClass using ArcObjects?

VB.NET against ArcGIS 10.1 I have a function which searches a geodb for a feature class name. If found I would like to display where it was found. Currently I only return the FeatureClass object like ...
2
votes
1answer
1k 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: ...
1
vote
1answer
78 views

Select the correct paths for The TIGER geocoder (linux)

I'm following this tutorial to setup the geocoder. I'm stuck on the step 2.8.1.4 "edit the paths in the declare_sect column to those that fit Debbie's pg, unzip,shp2pgsql, psql, etc path locations."...
1
vote
1answer
184 views

Loader_Generate_Nation_Script is not creating the scripts

I'm working on setting up the TIGER geocoder on a Linux machine. I have installed PostgreSQL and PostGIS, now I'm working on the extension, point 2.8.1 of this guide: I'm having problems with the ...
3
votes
1answer
59 views

Python qgis script

How to get the path of points? Because I want to open it using this code: lyr = QgsVectorLayer(path,"YXC","ogr")
1
vote
1answer
68 views

MXD “CURRENT” and Absolute path different behavior

I am using the following code (ArcGIS 10.3.1) to produce a batch of PDFs: mxd = 'CURRENT' cid = 2 rf = ur'D:\Δοκιμές\Tester' gdb = rf+'\\Ant.gdb' arcpy.env.workspace = gdb mxd = arcpy.mapping....
-2
votes
1answer
65 views

Paths and Python question [closed]

I have a problem because I want to store some paths from images by using python 2.7 in Windows 10. Path are like this: var1='C:/my/store/path' and inside the final folder, where in my example is ...
2
votes
2answers
319 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 ...
1
vote
1answer
188 views

Standalone Python/PyQGIS path setup

I'm trying to run a script using python. The script requires some qgis functionality. I believe I have set the path, pythonpath, etc. correctly. The OS is Windows 7 64-bit with qgis located at the non-...
0
votes
0answers
74 views

ArcPy code with pathname spaces works when referring to external HDD, but fails with network drive?

I have used this piece of Python code within ArcMap 10.3.1 countless times before with no errors raised. The G:/ drive refers to an external hard drive. Despite the spaces in the pathnames (which can ...
7
votes
3answers
243 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 ...
1
vote
0answers
295 views

QGIS 2.18.3 path and sip module cannot be load in ubuntu 16.04

I'm currently installing QGIS 2.18.3 it works fine at first, after upgrading my ubuntu the problems comes out every time I run my QGIS; it always shows "Couldn't load SIP module. Python support will ...
1
vote
0answers
144 views

QGIS python functions in relative path?

I am using QGIS 2.18.3 to create an atlas. This works well and I now want to call some functions to create richer content in a text box. To do this I am calling a python function from an expression. ...
1
vote
0answers
425 views

ArcMap HTML Popup XSL: Images with relative path

I added a HTML Popup to a map that displays several fields data and one image that's stored in a folder next to the map.mxd file. One of the fields in the table is the filename.jpg for each image. All ...
1
vote
0answers
128 views

Iterating rasters using parse path in complex model in ModelBuilder? [closed]

I have a complex model (with many tools/steps chained - named from "a" to "p") and I need iterate two input rasters (p1.img and p2.img), so that all the model outputs returned for the two input files. ...
1
vote
1answer
101 views

Customizing / Editing Dynamic Text for <path> in ArcGIS Desktop?

To encourage GIS users here to adhere more rigidly to the existing folder architecture as well as demonstrate the functionality of dynamic text, I'm trying to update one of our templates so that I can ...
4
votes
2answers
479 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 ...
1
vote
0answers
132 views

Setting output name to be same as input name in ModelBuilder using Parse Path? [closed]

Can you comment on my model as to why the output name is totally different from input name?
1
vote
0answers
495 views

Relative Image paths in QGIS

I want to import images with a relative path to my QGIS Project. I followed this https://www.youtube.com/watch?v=JnQk0NRqCyM tutorial. So far, so good. Works fine. My problem is, that my QGIS-Project ...
0
votes
1answer
1k views

absolute paths don't work for my leaflet custom icons

I've made an example leaflet project using a custom icon loading an image from the internet: https://jsfiddle.net/dvdjsph/v30vL109/ As soon as I try to load something from my hard drive, however, ...
8
votes
1answer
2k 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 ...
2
votes
1answer
860 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 ...
3
votes
1answer
357 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 ...
1
vote
2answers
615 views

Parse path for any workspace

I have a model which adds and calculates a new field with a workspace path. I upload only one layer from database to the model (called "tline"). Parse path can detect only the name and file of this ...
-1
votes
1answer
61 views

Setting one input parameter for several models?

I have a bunch of models (about 20) in my custom toolbox. I need to run them one after another and look for some errors which they make in table. I could put all these models into one but it is not ...
2
votes
1answer
146 views

QGIS virtual layer path never saved as relative

When I try to use virtual layers in QGIS, I'm unable to use relative paths. I've already set in the "Project Properties", in the tab "General", the "Save paths" as relative. You can see a ...
1
vote
1answer
145 views

How to create a label with QGIS project path in print composer? [duplicate]

Is there a way in the Print Composer of QGIS to create a label that will automatically update the path of the QGIS project?
1
vote
1answer
90 views

Choosing layers for processing tools in QGIS?

Am I right that if I want to choose layers for QGIS processing tools I always have to choose the shapefiles via the path directory, and that I can't drag and drop them from the layer window on the ...
1
vote
0answers
47 views

Run and install packages from local folder QGIS [duplicate]

I use QGIS in my work and sometimes need install python libraries for plugins to work but I don't have write access to C:/ where QGIS and python is installed (OSGeo4W). Is there a way I can install ...
5
votes
1answer
372 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 ...