New answers tagged

1 vote
Accepted

Highlight polygon in Leaflet

To identify which polygon you want to select, you need to assign some id to polygon features: let data = { "type":"FeatureCollection", "features":[ { "...
TomazicM's user avatar
  • 24.1k
1 vote

ST_Distance from one location to several locations on the same table

Use a single SQL expression (not nested) referencing the table twice with different aliases: SELECT loc.name AS Einrichtungsname, ST_Distance(loc.geom, pt.geom) AS Distanz FROM gebaeude_salzburg loc, ...
Mike T's user avatar
  • 41.8k
0 votes

ST_Distance from one location to several locations on the same table

It's not beautiful and might not be the fastest approach, but this should be what you want: SELECT gebaeude_salzburg.name AS Einrichtungsname, ST_Distance( geom, (SELECT geom FROM ...
bugmenot123's user avatar
  • 10.8k
1 vote

Counting number of selected features in QGIS

You can also use QGIS expressions to count the number of selected features in the current layer (e.g. if you use this value for further calculation in the field calculator): array_length (array_agg ($...
Babel's user avatar
  • 67.2k

Top 50 recent answers are included