Questions tagged [command-line]

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

Filter by
Sorted by
Tagged with
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 ...
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 ...
4
votes
3answers
251 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
1answer
871 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
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
3answers
768 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 ...
4
votes
1answer
275 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....
1
vote
2answers
2k 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 ...
3
votes
1answer
329 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
1answer
124 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
645 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 ...
1
vote
1answer
308 views

libfreetype-6.dll lost when using GRASS command line

Update#1: Following the instruction of Sorin Călinică, I have installed libfreetype-6.dll using the OSGeo4W Network Installer, and the command d.rast can launch successfully. I am using GRASS 6.4.3 (...
1
vote
0answers
484 views

Unable to call GDAL functionalities from Python

I am trying to call GDAL functionalities from the following script I made in the past. import os, fnmatch from subprocess import call call("dir", shell=True) # define the variables inFolder= os.path....
1
vote
2answers
189 views

Saving LAZ files to different location from input (LAS) files? [duplicate]

All of the command line examples I'm seeing show how to create LAZ files in the same folder as the LAS files, e.g.: C:\Folder\tools>laszip F:\Folder\LAS_points\*.las Unfortunately, I don't have ...
1
vote
3answers
650 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
717 views

Storing shapefile in PostgreSQL database as a table using PHP?

I want to create a table from a shapefile in PostgreSQL. To do that, I can run this command in cmd: shp2pgsql -s 4326 -W LATIN1 E:\Any\THA_adm public.test123 | psql -h localhost -d DATA -U postgres -...
-1
votes
1answer
704 views

d.rast problem in GRASS command line

In response to @gene I type d.mon in command line, getting a popout GUI look like this: I choose the top three flags(-l, -L, -p), and I got this: And I don't know what to type in 4 blanks below: ...