Questions tagged [environment-variable]
The environment-variable tag has no usage guidance.
56
questions
2
votes
1
answer
70
views
Environment Variables related to GeoServer aren't being read, how do you enable environment and system properties on server status modules tab?
I am trying to set the environment variables GEOSERVER_MODULE_SYSTEM_ENVIRONMENT_STATUS_ENABLED=true and GEOSERVER_MODULE_SYSTEM_PROPERTY_STATUS_ENABLED=true on our development installation of ...
0
votes
0
answers
44
views
How to change the location of default folder for QGIS profiles?
Is it possible to change the location of QGIS Active Profiles Folder?
A quick Google suggested that creating a new environment variable QGIS_USER_PROFILE with variable value being the path to the ...
0
votes
1
answer
78
views
import module qgis.core in standalone script with pyqgis without running bat before with environment?
To run a python script (example file "standalone.py") with module qgis.core I have to use a specific bat file (that call the py file!) with the following environment!
"rem Call ...
1
vote
1
answer
62
views
Altering AWS environment custom variable with PyQGIS
I was able to create a script which imports into QGIS .vrt files from a private bucket in Amazon Web Services S3.
But I had this one-time task to manually set the environment custom variables ...
1
vote
2
answers
165
views
How do I integrate the environments of QGIS and Anaconda/Spyder?
I have version 3.34 installed on my Windows 11 desktop. In addition I have a full install of Anaconda which gives me full access to Spyder and JupyterLab, both of which I very much enjoy.
My challenge ...
1
vote
1
answer
407
views
Receiving message 'py3_env is not recognised...' in OSGeo4W
I'm trying to install python packages into QGIS via OSGeo4W. I've been following steps from YouTube on installing external Python libraries into QGIS from 'Amy Lou' and 'GEO 2004'. My operating system ...
0
votes
1
answer
329
views
Unable to run standalone PyQGIS script with launch.bat file
https://www.qgistutorials.com/ru/docs/running_qgis_jobs.html
I want to run a script in a file called my_plugin.py.
The script is:
print ('Hello QGIS!')
The path for the script is:
C:\OSGeo4W\apps\...
1
vote
0
answers
555
views
Using environment variables in URL for data source
I have a QGIS project file that I want to distribute to a number of users. The project contains several WFS layers that users can also submit changes to. The WFS layers are hosted as a service and are ...
1
vote
0
answers
201
views
Errors Running Some Commands in GRASS Standalone Script
After much struggle I have managed to get a GRASS standalone script run outside of GRASS. I can successfully get an output from running some commands, while others give a very unclear and unhelpful ...
0
votes
1
answer
432
views
GeoServer SLD env function does not work
I have a database:
and I made with it a GeoServer getMap request which works great for one year (one column).
But I want to change the year programmatically with JavaScript (I am open for better ...
2
votes
2
answers
447
views
Using gdal_calc.py from the OSGeoW4 Shell [duplicate]
I want to run gdal_calc.py from within the OSGeoW4 shell but am having only limited success.
Firstly, if I type in -o help gdal_calc does not appear in the list, as show below, whereas I have seen ...
1
vote
1
answer
872
views
Setting qgis-server environment variables
I need to know how to set qgis-server environment variables, because I can't find a good explanation of how this works here on the SE or in the documentation. The specific environment variable I am ...
0
votes
1
answer
558
views
Custom sized buffer , Turf.js and Leaflet Draw
I'm looking forward to buffering an object drawed with Leaflet Draw , and with a custom width in kilometers in a div.
First Name: <input type="text" id="myText" value="...
1
vote
0
answers
307
views
ArcGIS Pro cloned Python environment changes to default
I have created a clone of the default environment in ArcGIS Pro 2.8, and have installed GeoPandas within it. In ArcGIS Pro Setting I activated the clone environment [toggle radio button) and restarted ...
4
votes
1
answer
117
views
Viewing entire Python script of process ( input settings and environment settings) in ArcMap
When you "copy as python snippet" from the results of a process, the script contains all of the input settings but does not contain the environment settings. Why is this?
Is it possible to ...
4
votes
1
answer
2k
views
Cannot install GeoPandas on cloned arcgispro env in Anaconda
I have cloned my ArcGIS Pro env into my Anaconda 3 env. My goal was to have access to both the arcpy mod and GeoPandas mod. I tested it in a notebook to make sure arcpy is working and it is. But ...
2
votes
2
answers
87
views
Correcting Thiessen Polygons output from ArcMap
I am try to divide irregularly shaped polygons at specific points. I don't have any fields that inform the angle at which the polygons should be divided. Based on the Split polygon based on point ...
2
votes
1
answer
111
views
Composite band through Batch processing using Sentinal 2 data in arcpy
As we know sentinel satellite data have many sub folder. I want to create composite band of each datasets with the band 2, band 3, band 4, band 8 which are located in one folder(10m) and band 11, band ...
0
votes
0
answers
40
views
Input feature mask name with variable - error 865
I have 73 raster files, with 73 corresponding shapefiles. I have to extract each of these raster by their corresponding shapefiles. I tried to call the shapefile using %Name%, since it has the same ...
0
votes
0
answers
2k
views
Can’t import any python modules in Jupyter notebook with newly created environment, ImportError: DLL load failed: specified module could not be found
(base) C:\WINDOWS\system32>conda activate agrodss
(agrodss) C:\WINDOWS\system32>python
Python 3.7.7 (default, May 6 2020, 11:45:54) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type &...
3
votes
1
answer
613
views
Activating a conda environment from within QGIS -- cannot be done due to inherited environmental variables?
Background
I've been working on a small QGIS Python plugin. Part of the functionality requires a number of packages that have complex dependencies. In my regular Python use, I use conda to manage it. ...
5
votes
1
answer
707
views
QGIS crashes when starting Python, unless opened in administrator mode
I am using QGIS 3.14.16 and I believe, I have somehow corrupted my QGIS/Python interaction.
My Problem:
When I open QGIS and the status information reads "Starting Python", the application ...
1
vote
0
answers
996
views
raster::crop not working as expected
I'm trying to crop a raster stack using a polygon.
structure(chelsa_envs)
class : RasterStack
dimensions : 20880, 43200, 902016000, 19 (nrow, ncol, ncell, nlayers)
resolution : 0.008333333, 0....
-1
votes
1
answer
1k
views
How to process environmental data for the input in MaxEnt (or any other modelling platform)
I have downloaded some environmental rasters from Worldclim. Now, I want to generate an environmental layer for MaxEnt by applying conditions on those rasters. These rasters are 32 bit, floating point ...
0
votes
1
answer
101
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'). ...
1
vote
1
answer
232
views
Tomcat 8.0 and GeoServer 2.17 on Windows Server, trouble upgrading JDK to latest version [closed]
I have Windows server running Apache Tomcat 8 and GeoServer 2.17. The JDK installed when setup is older, JDK 1.8.0_73.
I've now installed JDK 1.8.0_251. I changed my global env variable JAVA_HOME=C:...
0
votes
1
answer
188
views
Raster to Point in ArcMap: export raster data to a point shapefile with geometry of a given point shapefile
I want to export a calculated raster to a point shapefile with predefined geometry (i.e. positioning and extent of the points). Points not covered by the raster should return empty values (e.g. NoData)...
10
votes
1
answer
35k
views
Layer creation failed: Read-only file system
Ran into this error while trying to create a shapefile layer for training sites in an object segmentation project. This is an issue with QGIS itself, as I tried to create new vector layers on previous ...
0
votes
1
answer
200
views
QGIS Dataplotly plugin on Linux Mint
Hey I'm having problems installing the dataplotly plugin from the official repository.
Konnte Erweiterung 'DataPlotly' nicht laden
ModuleNotFoundError: No module named 'plotly'
Traceback (most ...
3
votes
1
answer
287
views
Set Windows temp file location
I am running some ArcPy scripts and the tools keep wanting to write to my c:\users\appdata\local\temp location. I have set the scratchworkspace and workspace environment variables of arcpy to a drive ...
1
vote
1
answer
663
views
Setting up if/then/else for choice of two options or boolean in ArcGIS ModelBuilder?
I'm using ArcGIS Desktop 10.6 and have a model as shown in the image below. I'm calling it option 1. The model exports GIS data to CAD DWG format and is comprised of two submodels, "Setup" and "Export"...
2
votes
2
answers
3k
views
Installing GDAL on an ArcGIS machine?
I have ArcGIS Pro (2.3.x) installed on my PC. I have python scripts which call ArcGIS toolbox models and runs them. Everything works fine.
Today I installed GDAL and Python bindings for GDAL. I also ...
1
vote
0
answers
109
views
qgis.core import to Python 3
I had a pure Python 3 configured for myself and recently installed QGIS (just QGIS, not OSGeo4W).
I need to keep my initial Python 3 but also add qgis.core module.
Can it be done with no harm to my ...
-1
votes
1
answer
274
views
Selected location extract data into single KMZ file or Single zip file in ArcGISServer - Python Tool GP Service
I am trying to write the GP tool (Python script), To extract the data for selected location into KMZ file, Please check below code it's executing successfully but written the incorrect zip file ...
2
votes
0
answers
620
views
Why is Raster Calculator not honoring compression environment settings?
For some reason, the Raster Calculator isn't honoring any Raster Storage environments that I have set. Mainly, compression and pyramids. I am processing a large raster dataset through raster ...
0
votes
0
answers
155
views
Extra square brackets in variable substitution - GeoServer SLD
I am trying to create a SLD in GeoServer to change the layer style based on the attribute passed. I am using GoeServer Variable substitution. The following is block of my SLD.
<Rule>
<Name&...
1
vote
1
answer
469
views
Snap Raster problem in ArcGIS 10.5.1
DEM is used to produce Slope raster. I use Snap raster but it does not work.
Based on some posts, I uncheck background processing of geoprocessing but it did not make difference.
Both the input and ...
0
votes
1
answer
1k
views
Errors with Append tool 000594
I am trying to No_Test append a polygon feature class to another polygon feature class. Both fc's are located in the same geodatabase. I am using the Append tool with ArcGIS 10.2.
I'm getting two ...
4
votes
2
answers
3k
views
GRASS GIS 7.4 in Linux for command line usage - setting up environment (.bashrc file)
I need to use GGRAS GIS 7.4.0 on Linux server (Debian 8.10 Jessie) via command line (with flag --exec) and I'm still having troubles with it.
Description: I compile and install GRASS GIS 7.4.0 with ...
1
vote
1
answer
960
views
OSGeo4W64 to OSGeo4W (32bit) Environ setting issue
I normally use my Python script using OSGeo4W64 command shell on my 64-bit PC (Windows10). Now, I'm trying to use my script on a 32-bit machine (Windows10). In the 32-bit machine, there's an issue ...
2
votes
2
answers
298
views
How to run multiple tool from different workspace environments
I've created 1 script to perform 2 specific tasks but it not working correctly due to how the arcpy.env.workspace is set.
The first part of the script deletes and recreates the sub folders in "C:/...
2
votes
0
answers
286
views
PostGIS SQL Editor plugin - path to pgsql2shp
I'm new to PostGIS/QGIS, and I was looking at using the PostGIS SQL Editor plugin (v.2.0.0) instead of the OpenJump tool recommended in PostGIS in Action 2nd ed. However, I am having problems ...
1
vote
1
answer
812
views
Clear Environment Settings in scratchWorkspace
I have several mxd files with a bad default geo-processing environment. The current and scratch workspaces are set to a location that no longer exists. I'm trying to use python to clear those settings ...
2
votes
1
answer
1k
views
Add environment settings to script?
I am using arc 10.4.1, I am having trouble adding the environment settings into my script. I want the user to set the environment, without having to hit this button and setting it:
I have attempted:
...
0
votes
1
answer
105
views
Species Distribution Modeling with Regular Sampling Data
I am attempting to determine what the best species distribution modeling algorithm to use would be for a data set of species localities that comes from a regular monitoring program. More specifically, ...
4
votes
1
answer
3k
views
disable M value and Z value by using arcpy
I want to remove the M and Z values of the shapefiles, which can be done by using Feature Class to Geodatabase (multiple) and choosing Disabled for M and Z values. The following picture shows the ...
7
votes
1
answer
9k
views
Output not overwritten despite "overwriteOutput = True"
As I understand it, overwriteOutput is an environment setting that controls whether an output overwrites an existing file of a duplicate name. Just re-checked the help pages, which confirms.
Despite ...
1
vote
0
answers
778
views
import error of qgis.core even though PYTHONPATH set up with system environment variable
I made the environment variables as described here: How2 Import
Though I still receive this error:
C:\>python
Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] on win32
...
1
vote
1
answer
355
views
Alter Esri geoprocessing environment settings with C#
I maintain an extension to ArcMap (currently at 10.2.2) for coworkers' internal use. Several people lately have been tripped up by un-set spatial grid settings when trying to export data into a file ...
1
vote
1
answer
852
views
use date(now) equivalent in mapserver
I want to use present year in a CLASS in a map file. I managed to write permanent expressions like:
LAYER
CLASSITEM "YEAR"
...
CLASS
NAME "Previous years"
EXPRESSION ('[YEAR]'&...