New answers tagged

0

Here is a auto color script based on AndreJ's code: ================================================================================ Usage: ------------- Custom color: python gdaldem.py input_tif.tif color.txt output_color.tif Auto color: python gdaldem.py input_tif.tif auto output_color.tif """ import subprocess import sys import os import tempfile import ...


0

Global Mapper will batch convert many formats including .shp to .gpx. To use it: Open Global Mapper (need it installed) Go File>Batch Convert/Reproject. When the window "Select File Type to Convert From" appears- select Shapefile, click OK. When the window "Select File Type to Convert To" appears - select GPX(GPS eXchange Format), click OK. ...


0

Technically it is possible to write a bot for getting those information, but sooner or later you will either hit a legal issue or a query limit (cf. Section C of 118118 terms on bulk downloads). For bulk operations I would recommend setting up your own instance of the OpenStreetMap server with Overpass API, where you can find the necessary information. ...


2

Cygwin might have altered your system PATH variable. You might have to re-install OSGEO4W afterwards. Alternatively, you can use the Gisinternal builds of GDAL, or the shell provided by the QGIS standalone installer. Or install to a different folder.


0

If you run a processing algorithm in QGIS, it will be logged in the processing history. Go to the menu Processing > History and find the algorithm. If you click it, the command line used to start the algorithm will show up in the bottom part of the window.


1

I have not yet used LAStools in QGIS via a Python command line (only via the toolbox). Maybe create the same query via the toolbox and then look at the log output to see how to correctly formulate the Python command line? Or come to the International QGIS Workshop and Conference on May 25/26 in Girona, Spain (near Barcelona) and we figure it out together ... ...


2

The following is just to give you an idea on how to automate some of the steps you mentioned, hopefully you can modify it to include some of the analytical tools you need: from PyQt4.QtCore import QFileInfo import glob, os, processing proj = QgsProject.instance() # STEP 1: Define Project name and paths for csv files and shapefiles project_name = "name" ...


1

Here is an updated answer based on a better understanding of your request. This code performs a union between the eraser and the erasee shapefiles and then selects the overlapping features and deletes them .It then deletes the unnecessary fields to maintain just the original fields from the original shapefiles. I clip the hydro layer first just to remove any ...



Top 50 recent answers are included