Questions tagged [powershell]

Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework.

Filter by
Sorted by
Tagged with
0 votes
0 answers
51 views

Highlight a feature in ArcMap from a web page

I have a web page that calls a PowerShell script to switch to ArcMap. I only want one instance of ArcMap running. If I open a new instance of ArcMap I can easily pass the PlotId as an Argument. ...
user avatar
  • 11
0 votes
1 answer
53 views

Batch conversion of .hgt files to .tif using Powershell returns filename.hgt.tif files

I have a folder which contains DEM in .hgt. I want to convert them via GDAL. So to convert a single file, it's gdal_translate -of 'GTiff' N16E122.hgt N16E122.tif. To do it in Powershell, I figured it'...
user avatar
  • 1,159
2 votes
1 answer
97 views

Running proj/cs2cs command in Powershell

I'm reading a book where it says to run the following in the commandline, I think he used Linux. Therefore the command doesn't run in Windows Powershell cs2cs +proj=latlong +datum=NAD83 +to +proj=utm +...
user avatar
  • 1,159
1 vote
0 answers
423 views

How to merge all raster files in a folder using gdal_merge?

I have DEMs in a folder like this If I run gdal_merge -o out.tif *.hgt, it says ERROR 4: `/*.hgt' does not exist in the file system, and is not recognized as a supported dataset name. A similar ...
user avatar
  • 1,159
1 vote
0 answers
28 views

How to run topojson from Powershell?

I have already installed node.js and used it to install topojson via npm install topojson. But when I run command like topojson input.geojson -o output.topojson, I get the familiar error of topojson :...
user avatar
  • 1,159
0 votes
1 answer
172 views

GDAL version different if called from Windows Powershell and shows "ERROR 1: Can't load requested DLL 193: %1 is not a valid Win32 application."

I have two GDAL installation, one from the OSGEO4W installer and one from Tamas Szekeres’ Windows binaries. I set the necessary variables according to the article. I open Powershell and ran gdalinfo --...
user avatar
  • 1,159
1 vote
0 answers
17 views

Cannot provide inputs for saga:difference using qgis_process-qgis (command line qgis)

I'm using the following command to find the difference between two Sentinel 2 rasters using saga:difference tool in Powershell (works fine in standard QGIS3): ./qgis_process-qgis run saga:difference --...
user avatar
  • 448
2 votes
2 answers
228 views

Executing standalone Python script for QGIS processing from within PowerShell script

Is there a way to execute either a python script or pyhton commands from within a powershell script to do some QGIS geoprocessing on a Windows 10 machine (64 bit)? I have a powershell script that ...
user avatar
  • 43
1 vote
1 answer
1k views

Python setup to run ArcPy scripts

I am trying to set up Python so that I can execute ArcPy scripts outside of ArcMap. I'm new to Python, however I have previously been able to execute Pythons scripts from the cmd prompt (PowerShell), ...
user avatar
0 votes
1 answer
337 views

Invoking-command in powershell 2012 (remotely) for ArcPy errors but local cmd or python shell work

I've written a data update script that works really well, it deletes a target feature class and uses the feature class to feature class geoprocessing tool to copy data from SQL 2012 into it's ...
user avatar
  • 1,137