Most Popular

1500 questions
16
votes
3 answers

Creating centerline of river in QGIS?

I made two river bank lines and I want to associate them. I want to make a centerline using two rows as a base. I managed to make the centre line with a lot of work creating several lines from one margin to the other of the river and then using the…
wallace camelo
  • 161
  • 1
  • 1
  • 3
16
votes
2 answers

Transferring flows (connections and values) between polygons in QGIS

In QGIS there are two shapefiles representing the moving data between cells and one additional layer, see image below Moving data defined by: A polygon 'LayerA' (transparent squares with red outline). Besides it also relates to circles…
Taras
  • 32,823
  • 4
  • 66
  • 137
16
votes
6 answers

PyCharm 2019 is not working with QGIS anymore

Since the update to PyCharm 2019 I am unable to load the QGIS Python modules. I can not use auto completion either. I already deleted the cache (by invalidating the cache in PyCharm and also by deleting the "system" folder in the user settings…
TheGrudge
  • 423
  • 3
  • 9
16
votes
6 answers

Finding pseudo nodes in free GIS software?

Software gvSIG OA Digital Edition 2010 have tools topology for finding pseudo nodes in linear geometry. I set cluster tolerance 0.00002 and maximum number of errors -10000 for 20000 link count linear geometry. But unsuccessful result. Are there any…
spatialhast
  • 3,631
  • 2
  • 27
  • 52
16
votes
3 answers

How to change position of columns in attribute table?

If I have an attribute table with columns A B C D, is it possible to move the columns to different positions, say, B C A D? When making a new column with the field calculator it would be useful to put it somewhere other than last position or to be…
HealthMaps
  • 995
  • 3
  • 10
  • 23
16
votes
2 answers

Detecting zoom change in OpenLayers

There is no appropriate zoom event listener in OpenLayers v5.3 yet, but there is a workaround suggested in this ticket: You can use this.view.instance.on('change:zoom', evt => console.log(this.view.zoom)); where view is a viewChild :…
yaugenka
  • 829
  • 2
  • 12
  • 23
16
votes
2 answers

Setting dashed stroke style when layers have features with sharing borders in QGIS

Layers like municipalities, countries,... have features sharing the border of their neighbours: they share the same vertices (except for the features at the edges off course). I have a municipality layer, which I set with a dashed stroke style.…
Koen Ver
  • 445
  • 3
  • 11
16
votes
1 answer

GeoPandas spatial join and count

I have following two GeoDataFrames. One with the crime count per polygon per year. Polygon Year total_crime shape_area geometry 0 0 2009 1 3.266388e+06 POLYGON ((..)) 1 0 2010 4 …
16
votes
3 answers

Finding and merging duplicate points in ArcGIS Desktop?

I have two point shapefiles: Red and Blue. Each point shapefile has a z value which represents a radius (i.e. represented as buffers in the example). A duplicate point is defined as a point that lies within Z distance of another point, which can…
Aaron
  • 51,658
  • 28
  • 154
  • 317
16
votes
4 answers

Selecting features by attribute if in Python list?

I am trying to complete a select by attribute in Python but based on the query of whether an attribute is present in a list. Such a query at its simplest should be something like this: qry = " \"OBJECTID\" in…
jsnider
  • 475
  • 1
  • 3
  • 12
16
votes
4 answers

Explaining difference between shx and shp files of shapefile?

I am searching for a more in depth explanation of the differences in shp and shx files to little avail. I mean beyond the 'shp contain geometry - shx contains an index of the geometry'. The reason I ask, is because while working in QGIS recently, I…
Maggie
  • 403
  • 1
  • 3
  • 12
16
votes
1 answer

User_Agent argument in Nominatim in GeoPy

I am trying to understand argument in package geopy and Nominatim geocoder. from geopy.geocoders import Nominatim geolocator = Nominatim(user_agent="specify_your_app_name_here") from their documentation. What User_Agent is and how should I decide…
Mateusz Konopelski
  • 263
  • 1
  • 2
  • 4
16
votes
2 answers

How to concatenate labels in QGIS?

I'm using QGIS 1.8 on windows XP machine and I try to do a concatenation of several fields to label the names of my local roads in the attribute table, but I can not find the correct syntax. The first field consists of om the street, the second type…
Gabriel Giroux
  • 261
  • 1
  • 3
  • 7
16
votes
4 answers

Migrating to Linux from Windows

I am looking at switching over a computer from Windows to Ubuntu. I have been a Windows user all my life and been using GIS for over a decade. I am curious about the migration to Ubuntu. Mostly, what packages, bindings etc I will need/want to…
Ryan Garnett
  • 9,479
  • 8
  • 61
  • 106
16
votes
4 answers

Adding layer to GeoPackage using PyQGIS

How to add layers (vector or raster to an existing GeoPackage)? While loading an existing layer of a GeoPackage is quite trivial: from qgis.utils import iface path =…
matteo
  • 3,304
  • 1
  • 23
  • 47