Questions tagged [command-line]

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

23 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
64 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
241 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
71 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
55 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
0answers
501 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
1answer
55 views

Cropping osm.pbf data without missing overlapping features?

for our offline maps tool we use *.osm.pbf data for input. As we often need cross border selections or just a country with some "buffer" around borders we use cropped osm data using osmctools. ...
1
vote
0answers
80 views

Obtain the number of features in a Shapefile using NodeJS

I'm using the shapefile NPM library which works well, but it doesn't provide a count of the number of features in a Shapefile. Is there some other library which can access this information (other than ...
1
vote
0answers
114 views

Saga GIS at command line in OSGeo4W - 'shapes to grid' tool - sqlite input

I have been using the Saga 'Rasterize' plugin in QGIS to rasterize spatial data from sqlite format (road networks, and intersections) to tiff. I find this tool more flexible than the gdal_rasterize ...
1
vote
0answers
217 views

Converting GeoPDFs to GeoTiffs using GDAL on a MAC

I was able to successfully install GDAL onto my Mac and it responds correctly to the test command. However, when I type in a command to translate a geopdf to a geotiff it spits out a failure. I have ...
1
vote
0answers
27 views

Dissolve polygons from layer1 witch overlaps with polygons of layer2 using GRASS

I want to dissolve polygons from layer1 witch overlap with polygons of layer2 keeping attributes table of layer1 and using command line. What I've done : v.in.ogr -o input=original_plygons output=...
1
vote
0answers
72 views

Is it possible to interact with a running instance of QGIS from the command line?

I just started looking at QGIS on MacOSX. I installed the MacPorts package and found the executable: /Applications/MacPorts/QGIS.app/Contents/MacOS/QGIS* Unfortunately it appears that the command ...
1
vote
0answers
482 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
0answers
318 views

How to run cmd prompt in the background and show progress bar

I am warping files using gdal. Since I have numerous files to warp how will I run the cmd in background and just have a progress bar to indicate the percentage in warping the files? Because when I ...
1
vote
0answers
230 views

Contour command in Spatial Ecology's GME

Has anyone been successful using the contour command from GME (Geospatial Modelling Environment)? I'm trying to create contours out of a DEM. I know you can do it in ArcGIS with 3D or Spatial Analyst ...
1
vote
0answers
295 views

Command-line tool for writing a print-composer to file?

I'm looking for a command-line tool, to write a previously generated print-composer to an image-file. The following resources I already saw: Related questions (1, 2) A gist Nevertheless, all them ...
1
vote
0answers
50 views

Can an external application start ArcCatalog.exe and immediately navigate to a specific folder?

I'm looking something similar to explorer's command line switches: explorer.exe /select,c:\examples\condensed\need\obtains\dispute\under\billion\floor or explorer.exe /e,c:\examples\condensed\need\...
1
vote
0answers
136 views

Command Line FGDC/ISO 19115 Metadata Editor

Are there any metadata editors compliant with ISO 19115 and/or FGDC metadata standards which can work with XML formatted metadata and run solely on the command line? Often times I'm working remotely ...
0
votes
0answers
52 views

ogr2ogr: How to export / explode GeoJSON features from collections into separate files

I would like to use an ogr2ogr command to export features as multiple separate geojson files from a single GeoJSON feature collection. I have tried using the -explodecollections command but I am ...
0
votes
1answer
39 views

gdalwarp for clipping images using multiple polygon in a bash shell for loop

C:\OSGeo4W64\bin\gdalwarp.exe -dstnodata 0 -q -cutline D:\hillsborough_Images_work\split_Polygon\120-140k\Hillborough_FINAL_140000_region_IGD_120570003d29ed0dc.shp -crop_to_cutline -dstalpha -tr 0....
0
votes
0answers
26 views

GRASSGIS Batch Process Command Not Running

I'm trying to rescale MODIS LST data by running the following command but it gives this error (Image Attached) Kindly help if the syntax is not right. Command: for %i (*MOD11A1.A2000065.LST_Day_1km*...
0
votes
0answers
61 views

Running ILWIS commands from DOS (cmd) prompt?

ILWIS commands from DOS (cmd) prompt I am able to run MapDrainageNetworkExtraction from ILWIS's command prompt interface. However, I now want to run it from a DOS (cmd) prompt like this: C:\Program ...
0
votes
0answers
72 views

Is it possible to compile a grass addon into a commandline app?

As the title says, I'm wondering if it's possible to take the source of a grass add-on and compile it into a commandline app. Or, alternatively, use the add-on in a python program. Basically, I don'...
0
votes
0answers
100 views

QGIS crashes on exit()

Here his my test code import os print("in qgis, quitting") os.sys.exit() When i execute it in QGIS2.0 with line qgis --nologo --code q.py it shows an error on line 3 os.sys.exit() Can you tell me ...