Stack Exchange Network

Stack Exchange network consists of 175 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 [command-line]

A string of text that acts as a command, typed at an interface prompt.

8
votes
2answers
4k views

Using PyQGIS, ArcPy, NumPy, SciPy Together in Windows Command Prompt

I ran across this slight issue when I was looking to access python installations from ArcGIS, QGIS, Anaconda (cited because SciPy & NumPy come with it), and version 2.7 vs 3. Sometimes, I find it ...
6
votes
1answer
4k views

What is the “command line” in QGIS?

I am trying to follow advice here on Stack Exchange [for converting or using .e00 files, although that is not the point of this question]. In the meandering path of search results, I keep seeing ...
5
votes
2answers
573 views

Count number of vertices in a shapefile using OGR

I'd like to extract the total number of vertices in a shapefile using command-line OGR. This answer suggests a method for intersections, but it isn't clear how to cross-apply it. Many other methods ...
5
votes
1answer
394 views

ogr2ogr won't read directory of GeoJSON into GPKG

I have a directory of GeoJSON files, which I want to load as layers into a single new GeoPackage file. According to the GDAL GeoPackage documentation, I can name my destination GeoPackage file, enter ...
5
votes
1answer
483 views

How do you close the QGIS Commander in 2.18?

I have opened the Commander tool in Processing. It is sitting over my map window. How do I remove the Commander from the display?
5
votes
3answers
1k views

Set default GDAL/OGR config options?

Is there a method to save GDAL/OGR Utilities --config default options? For example I almost always want to use the gdaladdo option for smallest possible jpeg-in-tiff overviews, but that's a lot of ...
4
votes
3answers
608 views

Converting large CSV to line-delimited GeoJSON?

What is a good way to convert a large (100MB) CSV file to GeoJSON on the command line, preferably without GDAL? I tried Mapbox's csv2geojson but it ran out of memory.
4
votes
1answer
1k views

Alternative to Tippecanoe for generating Mapbox vector tiles on command-line

Tippecanoe is the tool I always use for converting Shapefiles/GeoJSONs to Mapbox vector tiles in PBF format, for rendering in Mapbox-GL-JS. But it doesn't seem ideal: its primary use case seems to be ...
4
votes
1answer
187 views

Command line tool to repair self-intersection in GeoJSON

I am working with this file. Kansas seems to have a self intersection: TopologyException: Input geom 0 is invalid: Self-intersection at or near point -98.918045000000006 37.379078 at -98....
4
votes
1answer
2k views

Convert GeoPDF with GDAL

I'm attempting to convert a USGS US Topo GeoPDF in Windows. I'm using GDAL 1.11.1. My initial attempts were with this Python script, which automates the process by feeding a command to the Windows ...
3
votes
2answers
2k views

What are GDAL utilities?

I often come across code examples when searching for something like GeoTiff size - what to do?. Sometimes, the presented code examples seem to do exactly what I was searching for. There is just one ...
3
votes
3answers
215 views

Prioritising polygons in QGIS

I just created a layer in which I hand drew a lot of polygons. Now I want to fill out the Attribute table through commands since it will save me a bunch of time. Therefore, I calculated the area of ...
3
votes
3answers
2k views

Trying to run GDALbuildVRT in command line

I have a directory of OS data stored as tiff files (approximately 2000), which I want to create a virtual raster with. I understand that you can run this in the QGIS UI but because of the large number ...
3
votes
1answer
559 views

Use Orfeo Toolbox in R

I was wondering if it is possible to use the algorithm of Orfeo Toolbox in RStudio. I have been looking for some information but didn't find anything relevant. From the Orfeo toolbox I see that it can ...
3
votes
1answer
300 views

ogr2ogr too many GCP points - exceeds maximum number of characters in the command line

I am trying to adjust a vector polygon dataset using ogr2ogr spline transformation with cmd commands like: C:\\OSGeo4W64\\bin\\ogr2ogr.exe -f "ESRI Shapefile" C:\\path\\output.shp -order 3 -tps -gcp ...
3
votes
3answers
743 views

Applying specific Rendering to Raster and export to JPEG?

We have a specific process which generate an interpolated single band 32-bit Float Raster in Erdas Imagine (.IMG) format. This process generates an image every hour. We wish to apply a specific ...
3
votes
2answers
2k views

How to convert CSV file in VRT

I use the gdal executable in QGIS file, with a DOS command. I have a csv file like this (test.csv) : X Y -5.48 42.81 -4.78 42.52 -5.06 42.02 This coordinates are GCP. I would like to ...
3
votes
2answers
174 views

Call QGIS geoprocessing tools from command line (terminal, bash-script)

Is there any possibility to call tools found in the QGIS processing toolbox from the command line, other than using python? It is my understanding that if you use any GDAL tools, the QGIS gui is ...
3
votes
1answer
1k views

GRASS 6.4 Reinstallation for Ubuntu

I need to reinstall GRASS 6.4 on this Ubuntu computer due to compatibility issues. I had installed GRASS 6.4 a few weeks ago to work with a simulation program. I used the command apt-get install ...
3
votes
1answer
118 views

ogr2ogr window closes after termination

I'm using ogr2ogr for export from PostGIS to FileGDB. It works fine, but after termination the command window closes immediately. Is there a way to keep it open and get some kind of message or report ...
3
votes
1answer
47 views

Different languages via command line paramaters

I'm looking for a way to start different qgis instances in different languages simultaneously without changing the settings in qgis. Is it possible to define the language with a command line ...
3
votes
1answer
848 views

Clip multiple .las files data to polygon shapefile using FUSION

I followed this thread in order to clip .las data based off of a polygon shapefile. However I have over 100 .las files I need to clip based off of this polygon and merged into a single .lasd file and ...
3
votes
1answer
203 views

Opening PyQGIS in command prompt?

I want to run PyQGIS in the command prompt. But every time I get an error because python can not be found by the command prompt. I installed QGIS Desktop 3.0 64 bit via the OSGeo4W installer. C:\...
3
votes
1answer
61 views

Globbing in Windows to process images - how do bash loops look in DOS?

I'm doing some batch image processing with imagemagick on OSX using this line: for file in $(cat all.txt); do convert -crop 50X50@ +repage +adjoin "$file" "$file"_tile_50x50@_%d.jpeg; done It takes ...
3
votes
1answer
1k views

Unable to compile using make test in Linux

While trying to compile my test plugin I encounter this error, for the moment I can't figure out why, last week I had some issues on windows but eventually solved them via OSGeo Shell but this time ...
3
votes
1answer
359 views

is it possible to project a shapefile to a raster's custom projection with command line gdal/ogr?

I have a raster with a user defined sinusoidal projection and a shapefile in lat/lng coordinates (I believe this is called 'unprojected'?). I'd like to use ogr/gdal's command line utilities to ...
3
votes
1answer
115 views

QGIS keeping settings in sync?

I have several field PCs using QGIS and need to be able to use a thumb drive to re-set each one to the same window, commands, symbols etc.. I have read about the --configpath but am totally at a loss ...
3
votes
1answer
1k views

Creating GeoTIFF from TIFF using GDAL?

I have a tiff image and I would like to georeference it, and so create a Geotiff. To do that, I have to use GDAL. I use in particular, the executable store in the QGIS file (gdalwarp.exe, ...
2
votes
2answers
34 views

Translate manual operations to GRASS commands

I am new in GRASS GIS and i wanted to know how i could translate GRASS manual operations to GRASS commands in the console. I imported a raster and i was able to see the command r.import input=XXXXX\...
2
votes
2answers
243 views

Using LAStools to repair headers for several LiDAR files?

So, I have 21 LiDAR files with incorrect information in their file headers. For example, when I import a single file into R using the following code, I get several warnings saying that there are no ...
2
votes
1answer
451 views

OSGeo4W Shell 'Command not found'

I have a sh script that I want to use to process raster files. eg #!/bin/sh # my first script, # copyright, year, Author r.mask -r for file in A*chlor_a_4km ; do echo "map: $file" ...
2
votes
1answer
213 views

How can I get a shapefile of coverage from the Planet Labs scenes API?

I'm using the Planet Labs Scenes API and need to get the results of a (large) search I'm making as a shapefile. Any hints on how to go about it? I'm comfortable with command line tools like the ...
2
votes
1answer
73 views

Build spatialite db from scratch within build process

Having a scripted build process on Windows 10 (CMD or Powershell, both is possible) I want to build a spatialite database with the ready to use but empty schema created from a couple of sql files. I ...
2
votes
1answer
163 views

Pipe, redirect or stream to osmfilter from “standard in” (stdin)

So many tools support chaining, or piping in data from standard input. This can decrease times needed for disk writing and also better use the memory of a machine. Examples of chaining: GDAL - "...
2
votes
1answer
1k views

Using Panoply command line scripts

I have been using Panoply for a while now, and I noticed that you can export a command line script to reproduce the figure. If I look at the first lines of the script, it tells me that I should run it ...
2
votes
1answer
745 views

Couldn't Excute command line PostGIS pgsql2shp

I am using postgres 9.3 with postgis 2.1 on Ubuntu 14. When I tried to dump pgsql table using pgsql2shp, I get the following error. Error: pg_wrapper: pgsql2shp was not found in /usr/lib/postgresql/...
2
votes
2answers
416 views

Adding dynamic text to ArcGIS map documents

I've been making some map layouts and just noticed this command: < dyn type="document" property="name"/>.mxd It make possible to change automatically my current file name: http://prntscr.com/...
2
votes
1answer
336 views

How to set opacity for GRASS layers using command line?

In the process of learning GRASS, I am finding that I can learn many of the command-line methods that I need for scripting tasks from using the wxGUI, as it conveniently shows most of the underlying ...
2
votes
2answers
921 views

Permisson denied when running script or Error 4: no such file or directory(standalone)

I started working with QGIS, because I need to build a forest fire risk map for a university project. I tried to build a little standalone application to calculate the NDVI. I'm following the python ...
2
votes
1answer
218 views

Command line GDAL path error

I'm a Windows user getting an error when using GDAL from the command line (which I'd like to do for a couple reasons). Attempting to use gdal_polygonize.py (in my case), as in: gdal_polygonize.py ...
2
votes
0answers
63 views

Pass attribute to python script with QGIS command line launcher

I didn't find the answer to this question : is there a way for passing attributes to python script when you try to run it from QGIS command line launch : os.system('qgis --nologo --project project....
2
votes
0answers
212 views

Converting OSM.PBF to Geopackage in CLI?

I would like to refresh this tutorial for my purposes - background vector map in one file - just to load in QGIS. My idea is a script doing this: Import directly downloaded Openstreetmap PBF file (...
2
votes
0answers
62 views

Using rasterio and rio_color command line problem/question

I'm an amateur when it comes to the command line. My problem is that the script I'm trying to run (rio) is in the Python\Python36-32\Scripts folder on my C:drive and I'm trying to run it using ...
2
votes
0answers
53 views

String together multiple commands at command line - Qgis

I am using the command line to export images from Qgis. is there a way to export a series of images in a single command? It takes a while for the data to load each time. I have tried simply including ...
2
votes
1answer
375 views

How to connect QtDesigner with python console on QGIS

I've created a script with python console on QGIS and an interface for my plugin with Qt Designer with QGIS 2.14.0 custom widgets. I would like to connect my sript with the interface but I can't find ...
2
votes
0answers
499 views

Unable to compile using make test(windows)

While trying to compile my test plugin I encounter this error. At the moment i can't figure out why it isn't working. I m using a windows and try to execute the command in OSGeo Shell. I typed in ...
1
vote
2answers
1k views

Error when using gdal_calc.py

I'm trying to perform some raster calculations (ex:A+B, A*(A>0)) using gdal_calc.py, but I'm stuck with an error when I try to make this simple test command: import subprocess import sys ...
1
vote
3answers
4k views

Subtracting rasters using gdal_calculate command?

How do I subtract two raster using gdal_calculate command? Note that gdal_calc is different from gdal_calculate.py. The rasters I am using have different dimensions.
1
vote
3answers
531 views

Command line-tool to convert geojson file to line-delimited geojson

I'm loving the ndjson-cli tools for working with newline-delimited GeoJSON files. But I can't seem to find a tool that converts a standard GeoJSON (whether minified or prettified) ond converts it to ...
1
vote
3answers
487 views

How to register as versioned using SDELayer?

This is the normal process using ArcCatalog : I want to automate this process using sdeLayer or any tools - does anybody have an idea as to how to do it? there is an application sdelayer (sdelayer....