All Questions

27,396 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
24
votes
0answers
2k views

Leaflet v1 plugin: layer control for ungrouped, grouped, and nested-grouped layers

I need a Leaflet plugin which extends L.Control.Layers. I have the following requirements: works with Leaflet 1.x handles ungrouped layers alongside grouped ones handles nested layer groups does not ...
14
votes
0answers
1k views

Digitizing in stream mode in QGIS, using a tablet?

How to digitize in stream mode in QGIS, using a wacom cintiq tablet? Freehand it's no use. I need something like MNDR stream digitizing extension for arcview 3.x, which allows continuous tracing, ...
14
votes
2answers
504 views

Concatenating export path in Google Earth Engine

My goal is to store different exports from Earth Engine projects in separate subfolders of a main GEE_export folder on my Google Drive. I'm using Export.image.toDrive: Export.image.toDrive({ ...
12
votes
0answers
700 views

Parsing file format for attributes in Raster Product Format (RPF) maps and imagery?

I'm trying to implement an open-source NITF reader (using only java, no external libraries such as GDAL or NITRO), and its mostly going OK. However I'm having trouble understanding the RPF extensions, ...
11
votes
0answers
1k views

Constructing a Voronoi diagram using a complicated travel time metric

I have in my possession four sets of shapefiles: 1. Locations (points), around 1000 2. Roads (lines), each road has a speed attribute 3. Terrain (polygons), each zone also has a speed attribute 4. ...
10
votes
0answers
150 views

Measure loading times of QGIS projects

For QGIS there is already a method to measure loading times of plugins ( qgis.utils.plugin_times): How to tell which QGIS plugins are slow to load? Is there something similar to measure loading ...
10
votes
0answers
1k views

Extract TopoJSON directly from PostGIS

I have a simple "region" table: id (TEXT), name (TEXT), geom (MULTIPOLYGON). Here's the query I can use to extract a GeoJSON FeatureCollection: SELECT row_to_json(fc) FROM ( SELECT '...
9
votes
0answers
253 views

High PostgreSQL/PostGIS memory and disk usage when saving QGIS project

Why would simply pressing the "save" button in QGIS cause my local PostgreSQL instance to cause memory and disk usage to spike to "Not Responding" levels? Seems to me like the ...
9
votes
0answers
893 views

Efficiently calculate distance between raster patch edges

I have a binary raster which I've classified into patches using raster::clump. I now want to efficiently calculate the edge-to-edge, i.e. minimum, pairwise distance between patches. I am currently ...
9
votes
1answer
6k views

Downloadable, Open Source, IP GeoLocation database

I have an open source project I need a similarly open source IP GeoLocation database for. i.e. IP address to country (and ideally city). Ideally with a license that allows redistribution. This is a ...
8
votes
0answers
179 views
+100

Remove reference to raster layer object PyQGIS

I am developing a plugin to load a set of raster files on QGIS. When there are a large number of files to be loaded, the main UI is freeze. So I use QgsTask to move the creation of raster layers to a ...
8
votes
0answers
254 views

Producing time-space cube in QGIS?

Although I have seen many examples about doing this at ArcGIS Desktop, I am still trying to find a how to using QGIS. What I want to do is something like the image below.
8
votes
0answers
235 views

ESRI Runtime Geodatabase Shape storage

Does anyone out there know the geometry storage encoding for ESRI's Runtime Geodatabase (.sqlite) format? aka mobile geodatabase. There are 'GDB_ tables', 'st_ tables', 'RTREE indexes' and other ...
8
votes
1answer
413 views

Point cluster symbology for different categories without overlapping symbols

I'm trying to visualize crimes based on if the crime happened during day or night time. I've tried using the point displacement tool but I'm not satisfied with the results because the readability for ...
8
votes
0answers
393 views

MapScript with Python 3

I am trying to build raster summarizing features into a GeoDjango webmap, and would like to use the django-raster and django-wms packages to do so. I believe that I have them set up correctly, but am ...
8
votes
0answers
2k views

Exporting a 16-bit image from QGIS?

Could someone explain how to export from QGIS a 16bit image. I have imported data and coloured it as I want, but need to export it as a 16bit image, as 8bit is giving a terracing effect.I believe I ...
8
votes
0answers
274 views

Defining partial or complete overlap with QgsSpatialIndex

I'm working on adding some functionality to a QGIS plugin. It currently uses a QgsSpatialIndex to efficiently compute whether the features of a vector layer intersect (potentially millions) of ...
8
votes
0answers
1k views

Evaluating map projection scale error

This is related to a previous question How to determine projection parameters when customizing a projection I posted. I am trying to quantitatively evaluate scale distortion associated with choosing ...
7
votes
0answers
470 views

Shapely with Rtree versus STRtree

I have a huge interrogation regarding the performance difference between Rtree and STRtree included in Shapely. Below is a short code where we create randomly 250 000 triangles (defined by 4 vertice) ...
7
votes
0answers
252 views

Accessing watershed boundary for lakes in R

I have had success accessing unique database IDs and polygons for various lakes in the US. I'm now looking to get polygons for the watersheds associated with these lakes, but have stumbled a bit. ...
7
votes
0answers
1k views

Georeference an unreferenced image using rasterio in Python

I have unregistered/unreferenced 6 band TIFF images that I have been trying to export as georeferenced GeoTIFFs. The GPS coordinates of the corners of each image is known and each image is 1024 height ...
7
votes
0answers
210 views

Calculate volume of space defined by multiple overlapping 3D polygons

I have thousands of 3D polygons scattered in space but they mostly overlap with many of their neighbors in big extent. Is there any way how to compute volume they define effectively? I would love ...
7
votes
0answers
166 views

Processing post-execution script hook to clear scratch layers?

I've been cobbling together some Processing scripts for QGIS 2.18 (I'm not a fan of QGIS 3 scripts), and I keep running into one particular problem: my script creates a lot of scratch layers and they ...
7
votes
0answers
280 views

Multithreaded DB connection for QGIS plugin

I am using QGIS 2.18.21 and PostgreSQL 9.6. on a Windows 8 machine. I am trying to do processing of a certain database task in the background, and I want the user to be able to continue to work in ...
7
votes
0answers
1k views

Setting band names when writing multiple layer rasters using GDAL with Python?

I want to write a raster file (using GDAL+Python) with multiply bands. However, I do not know how to named bands. Their names are always "Band 1", "Band 2", etc. I search and found a function that ...
7
votes
0answers
1k views

Joining segments of a line in QGIS?

I have lots of different lines composed of hundreds of segments in a Shapefile. I would like to join them spatially where every start (or end) point of a segment correspond exactly (or within a range ...
7
votes
1answer
2k views

Clipping raster brick object in R

I have MODIS NDVI TIFF files for a year I want to first clip it with a irregular polygon (not by its extent only) of my study area and save it as a multi band raster in TIFF format The TIFF image are ...
7
votes
0answers
913 views

ogr2ogr (or other) simplification of polygons with shared boundaries

I am trying to simplify a collection of 100,000 or so polygons containing nearly 4 million vertices. The data is stored in a 2GB shapefile so there is no explicit representation of the topology ...
7
votes
1answer
5k views

C# implementation of concave hull / alpha shapes

I'm looking for a C# implementation of the Concave hull (alpha shapes) algorithm. I already found several Java, Python and C++ implementation but no C# version. The other implementation are quite ...
7
votes
1answer
367 views

Opening MOD17A3 in ENVI so it is properly georeferenced?

I am using ENVI 5.1 on Windows 8. I am trying to open a MOD17A3 (MODIS Net Primary Productivity standard product - L4) .hdf file which I downloaded from the USGS website. I am still a beginner at ENVI,...
7
votes
0answers
2k views

How to prevent cross-world lines in ggplot world map?

I'm having issues displaying 'great circles' paths and polygons in ggmap, an extension of ggplot2. Please enter the following code to replicate my issues: https://gist.github.com/Robinlovelace/...
7
votes
0answers
921 views

What is the convergence threshold for ArcGIS Iso Cluster?

The ArcGIS tool Iso Cluster Unsupervised Classification does not seem to have any documentation on the convergence threshold used in the tool. To compare, Erdas Imagine has all of the necessary ...
7
votes
1answer
3k views

Using MMQGIS hub lines tool in QGIS?

I am trying to connect source and destination points with the hub lines tool in MMQGIS. I have gone through the other posts on this subject but couldn't figure out what I am doing wrong. I have ...
6
votes
1answer
89 views

Creating raster from point values

I have a raster whose pixel values are 0 or 1 (b/w areas in the image below) and data type is Float32. I made a point layer from each individual pixel's center. Then I made some calculation for all ...
6
votes
0answers
96 views

OGR failing to unpack polygons and respective holes from shapefile

I'm trying to unpack shapefiles in Python (v3.7.4) using the GDAL-OGR library (v2.3.3). Each shapefile has only one feature containing multiple polygons with holes. They cannot be produced differently....
6
votes
0answers
92 views

How to do a Lee’s Tetrahedral Conformal Projection of Antarctic/South pole on QGIS?

I want to do map of Antarctic using the Lee's Tetrahedral conformal map projection as the image below using QGIS version 3.4. Is it possible to make a custom CRS to do it? If yes, what's the ...
6
votes
0answers
118 views

Intersections in linestrings using PostGIS

I need to get the intersections of streets and create a graph, so to get the intersections I use this select: SELECT ST_geometrytype(geom), geom from (SELECT a.gid, st_intersection(a.geom, b.geom) as ...
6
votes
0answers
68 views

Referencing an output in an expression in process modeler

In the process modeler, I'd like to reference an output of a previous step as one of the parameters of an algorithm. In this case, the previous step was clipping a large raster and I want to use the ...
6
votes
0answers
2k views

QGIS 3.4 and loading raster from multiple variable NetCDF file

Using QGIS version 3.4.4 when loading a NetCDF file out.nc which contains multiple variables on a fresh Ubuntu 18.04 install I encounter the following error: CRITICAL Invalid Layer : Raster layer ...
6
votes
0answers
1k views

Function in R to get difference between two sets of polygons comparable in speed to QGIS

I have two very large polygon shapefiles for which I need to calculate the difference between the two shapefiles. One is a shapefile of forest polygons, the other is a shapefile of road polygons. I ...
6
votes
0answers
558 views

Add private plugin repository to QGIS 3.4

I want to add a repository to my QGIS 3.4 which is on a private server. The repository contains all files needed (plugin.xml and metadata.txt for example) and has the structure as described here: Is ...
6
votes
1answer
302 views

Setting grid in QGIS that automatically adjust its intervals?

I am setting a template for multiple maps in QGIS 3 Layout and i was wondering if there is a way of automatically adjusting the grid's interval as a function of the scale of the map? I did a bit of ...
6
votes
0answers
389 views

Labelling a rubber band (QgsRubberBand)

It is possible to label QgsRubberBand or QgsVertexMarker with a text annotation (QgsTextAnnotationItem). See this MWE: ... r_polyline = QgsRubberBand(iface.mapCanvas(), False) r_polyline....
6
votes
0answers
797 views

Using WFST in Leaflet: can not move/delete features

I write a Leaflet app which makes use of two plugins Leaflet.Draw and Leaflet.WFST. The first allows to create/edit/delete features, the second saves changes to my PostGIS database hosted by GeoServer....
6
votes
0answers
928 views

Join attributes by location very slow on QGIS 3.0

"Join attributes by location" is very slow on QGIS 3.0. I have tried it with a CSV file and also with a shapefile (point layer) and a grid (made of polygons). On QGIS3.0 it takes about 3 hours to ...
6
votes
0answers
192 views

Position of vehicles relative to lead vehicle

I have a set of vehicles (think railway) that are in a (semi)fixed formation. I know the lead vehicle and I know the GPS coordinates of the lead vehicle at any given time. Sometimes, I can rely on the ...
6
votes
0answers
408 views

PostGIS issue with ST_Clip?

I'm trying to clip a raster using a polygon but I end up with a result that doesn't seem right and where some raster pixels are outside the polygon used for the clip. See image below where polygon is ...
6
votes
0answers
320 views

GDAL contour line generation at DEM edges

In a Python application I use gdal.ContourGenerate() to generate contour lines (GDAL version 1.11.4 and 2.2.1) from DTED tiles. DTED tiles overlap at the top and the right with neighboring tiles. ...
6
votes
0answers
535 views

Adding layer using QgsMapLayerRegistry within thread PyQGIS Plugin

I am developing Python QGIS plugin, where I am opening two threads in run function with one thread performing calculation while second thread is printing value looping and when first thread is ...
6
votes
1answer
341 views

Save as output layer from QGIS processing algorithm to PostGIS database using PyQGIS

I have two layers(layer1,layer2) in PostGIS database where I have connect in QGIS project. My database have specific precision. Now I want to use from QGIS processing some algorithms like ...

15 30 50 per page
1
2 3 4 5
548