Questions tagged [environment-variable]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
48 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
57 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 ...
0
votes
0answers
15 views

Installing GDAL for Python having PostgreSQL already installed

I usually install GDAL following this instructions. Part of the process is to set up the GDAL_DATA environment variable to the path of the gdal-data folder of the previosly installed GDAL. Turns out ...
1
vote
0answers
62 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
54 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
113 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
58 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
114 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
138 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 ...
0
votes
1answer
550 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
212 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
76 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:/...
1
vote
0answers
186 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
317 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
210 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
63 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
1k 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 ...
5
votes
1answer
4k 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
565 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
229 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
334 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
235 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 ...
4
votes
1answer
708 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 ...
4
votes
1answer
2k 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
662 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
867 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 for arcgis 10.2: C:\Users\MyUserName\AppData\Roaming\...