4
votes
Accepted
Converting pipe-separated file containing GeoJSON geometries to GeoJSON with ogr2ogr
As geom is not the default name, you need to add -oo GEOM_POSSIBLE_NAMES=geom to tell ogr2ogr that the geometry is in the geom column: CSV driver: open options.
Something like this:
ogr2ogr -f "...
3
votes
Accepted
More efficient way to use Symmetrical Difference tool for layer with many features
A typical way to solve this is to reduce the size and complexity of the input geometries by first doing an intersection of them with a grid-layer. This can give an enormous difference in processing ...
3
votes
Dealing with NULL when using aggregate function in QGIS Expression
You can replace NULL with empty geometry, e.g.
geom_to_wkt(union(make_point(1, 4), if(is_empty_or_null(make_point(1,2)), geom_from_wkt('POINT()'), make_point(1,2))))
--> 'MultiPoint ((1 4),(1 2))'
...
2
votes
Dealing with NULL when using aggregate function in QGIS Expression
One way is to use array_remove_all to actually remove all NULL values from an array before using collect_geometries:
geom_to_wkt(
collect_geometries(
array_remove_all(
array(...
2
votes
QGIS - collect geometries with geometrygenerator by value to display only one label
If your road are polygon feature you may use the expression :
buffer (collect ($geometry,"name" ),0)
in the geometry generator to get one polygon for feature with the same name
1
vote
More efficient way to use Symmetrical Difference tool for layer with many features
Having large complex geometries will slow down processing.
Try:
Multipart To Singleparts
Subdivide
3. And Create Spatial Index
On both input layers
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
geometry × 1883qgis × 439
postgis × 285
python × 202
polygon × 196
arcpy × 166
postgresql × 121
arcgis-desktop × 118
shapefile × 96
pyqgis × 95
coordinate-system × 80
sql × 74
sql-server × 66
line × 60
geopandas × 59
intersection × 55
shapely × 53
qgis-3 × 48
arcmap × 47
point × 47
geojson × 44
well-known-text × 42
vector × 39
ogr × 39
linestring × 39