Questions tagged [environment-variable]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
33 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 ...
0
votes
0answers
37 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
1answer
34 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
1answer
26 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 ...
1
vote
1answer
54 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
1answer
17 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)...
1
vote
0answers
840 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
1answer
83 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 ...
2
votes
1answer
41 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
1answer
179 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"...
1
vote
2answers
517 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
0answers
85 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
1answer
94 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
0answers
232 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
0answers
79 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
1answer
217 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
1answer
322 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 ...
2
votes
1answer
1k 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
1answer
417 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
1answer
106 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
0answers
233 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
1answer
462 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
1answer
253 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
1answer
74 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, ...
3
votes
1answer
2k 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 ...
6
votes
1answer
6k 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
0answers
655 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
1answer
270 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
1answer
473 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]'&...
0
votes
3answers
264 views

Assign Mask From Layer in SearchCursor Loop In ArcPy: Error Accessing Environment

I'm trying to run a loop based on a SearchCursor that selects layers from an input polygon and polyline. I want to select a feature from the polygon to use as a mask for running Euclidean Allocation ...
5
votes
1answer
1k views

Dynamically style geoserver layer with timestamp column --> age of entry

I have a a postgis table with point geometries and a timestamp column, which has the information when the point was created. This table is already loaded as a layer into geoserver. So now in ...
5
votes
1answer
3k views

How to connect input parameter to the field calculator algorithm within the graphical modeler?

I am building a model in the graphical modeler of QGIS 2.8.1 Wien and I would like to give the option to the user to enter a number in the model with which a selected field will be multiplied, but I ...
3
votes
2answers
6k views

How can I correct/alter/change the workspace path in my environment settings?

This has been bothering me for a very long time. No matter what I do, whenever I open ArcGIS Desktop, the environment settings for current and scratch workspaces revert to a path that is non-existent ...
5
votes
1answer
779 views

Managing environment variables in arcpy?

The Arcpy documentation seems to suggest that when writing python scripts that utilize/modify variables in arcpy.env, you should wrap everything in a bunch of try/except/(finally) loops with custom ...
4
votes
2answers
921 views

Arcpy to get ArcGIS Application Data folder (My Toolboxes folder)

Is there a way (enviromental variable) in arcpy to get access to ArcGIS Desktop AppData (per user) folder. For example, I need to access this folder in 10.2: C:\Users\MyUserName\AppData\Roaming\ESRI\...