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

learn more… | top users | synonyms

0
votes
0answers
27 views

Batch Clipping Shapefiles using Argparse

Is there a way to batch clip shapefiles in ArcPy using an argument-Argparse (which calls a shapfile or group of shapefiles) specified by an outside user in command line?
3
votes
1answer
30 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 ...
4
votes
1answer
41 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 ...
2
votes
1answer
38 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 ...
1
vote
1answer
37 views

Is there a way to create an mxd from the command line?

Is there a way to run ArcMap in a batch script to create a basic mxd containing specified layers? Something like: "Path to ArcMap exe" -create "Path to new mxd" -include "layers to add"
0
votes
1answer
80 views

How to export to KML from Spatialite command line

The Spatialite GUI can export a Geometry column to KML file. How would one go about doing that from the Spatialite command line? I am looking for an example code preferably - the .help doesn't mention ...
1
vote
1answer
144 views

How to create GTiff 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, ...
1
vote
0answers
31 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 ...
0
votes
1answer
85 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 ...
3
votes
2answers
554 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 ...
2
votes
2answers
184 views

How to convert CSV file in VRT

Im a geomatics student. For the treatment I would like to make, 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 ...
3
votes
1answer
138 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 ...
0
votes
1answer
86 views

Create blank table from unix shell

I am in the middle of trying to create my first PostGiS database and seem to be running into problems developing scripts to automate importing the various spatial formats so I can use them in my ...
2
votes
1answer
162 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 ...
1
vote
3answers
630 views

How to subtract rasters using the gdal_calculate command

I just want to know how to subtract two raster using gdal_calculate command? Or what is the proper way of subtracting using this? Any idea would be greatly appreciated. Note: gdal_calc is different ...
1
vote
0answers
199 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= ...
3
votes
1answer
93 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 ...
1
vote
1answer
370 views

Unexpected closing of mxdperfstat tool?

I'm trying to test an mxd with mxdperfstat. I want to test several scales, but as soon as I provide a scale over 500, the program simply quits. No Error warning. It just stops working. If I provide ...
1
vote
1answer
47 views

How to add grass64 to PATH variable

I recently installed GRASS 6.4 in a Unix environment. The application opens fine, but I would like to also be able to run the GUI from the command line. The tutorials says that the grass64 command ...
3
votes
1answer
930 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 ...
1
vote
1answer
175 views

Need to quickly know (CLI) whether point lies inside polygon

in my app I am parsing an XML from the web which gives me such coordinate info: I am able to use my app to get a pair of float values like 14.871381 and 50.065968. I do not want any complicate ...
2
votes
2answers
194 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: ...
1
vote
0answers
95 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
1answer
390 views

How to interact with GRASS GIS vector map topology “level/layers” from terminal/command line?

Is there anybody out there that can maybe assist in the most simplest form of code to call on command line to "export topology" (which is level 2 information in GRASS) as separate spatial data, as ...
0
votes
0answers
43 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 ...
1
vote
0answers
107 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
87 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
2answers
125 views

GRASS GIS: auto-completion fails in commande line

I'm running GRASS GIS 6.4.3. on Win 7, SP1, 64 bit. The path to my grass-DB is: D:\grassdb Within the GRASS GIS Commande Line, if I press the tab-key to auto-complete only folders, files and ...
1
vote
1answer
128 views

How can i store shape file in postgress database as a table using php?

I want to create a table from a shape file in Postgres. 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 -w ...
1
vote
2answers
219 views

how to start qgis with --configpath option on windows

how can I start QGIS on Windows 7 with the --configpath option? I'm used to work with Linux where this procedure is very very simple (just write in a terminal qgis --configpath) with all the options. ...
0
votes
0answers
36 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 ...
1
vote
0answers
38 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 ...
3
votes
3answers
283 views

How to apply a specific Rendering to a 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 ...
1
vote
2answers
456 views

Osmconvert command-line window closes when I press Return

I am dealing with Open street map Data. I want to convert some of these .o5m files to .osm format so that I can process them in QGIS. So, I have downloaded Osmconvert to run on my Windows XP ...
0
votes
0answers
41 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 ...
0
votes
1answer
549 views

d.rast problem in GRASS command line

Update#1: @gene, thank you for your reply and 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 ...
1
vote
1answer
150 views

g.list problem in GRASS command line

I am using GRASS 6.4.3 (installed with osGeo4w), and I have this question: As I type g.list, a function window will pop out, and all functions and results are fine. But when I type g.list rast, I got ...
1
vote
1answer
252 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 ...
0
votes
1answer
72 views

grass on ubuntu cannot import globalvar

I installed GRASS GIS 6.4.3 on Ubuntu Precise 12.04 by sudo apt-get install grass grass-doc, as recommended by the Wiki. It runs with the wxpython GUI, but when I use any command (like r.in.gdal or ...
0
votes
0answers
78 views

Loading QGIS and files from Python's use of os.system?

I am trying to open QGIS and load two files using the following code in Python: os.system('qgis D:\data\vector.shp D:\data\raster.tif') However it returns this error message: 'qgis' is not ...
1
vote
0answers
83 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 ...
1
vote
3answers
369 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 ...
1
vote
1answer
195 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 ...
3
votes
1answer
201 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 ...