Questions tagged [explode]
To break a polyline or polygon into its component line segments. Also to break a multipart feature into its component parts. Also known as "drop".
21
questions
3
votes
1
answer
213
views
GeoPandas Explode Multi-Polygon Holes Filled Inexplicably
I've run into an issue with the Geopandas explode method. When I run the explode method, multi-polygons which originally had holes are filled inexplicably. I need to expolode the multi-polygons in a ...
1
vote
2
answers
494
views
GeoPandas .explode() FutureWarning: Currently, index_parts defaults to True, but in the future, it will default to False to be consistent with Pandas
I have a simple GeoDataFrame containing 2 records, with MultiPolygonZ having several single parts as geometry elements. When I try to split those in their single parts using the .explode() method, it ...
0
votes
0
answers
49
views
QGIS explode takes forever
I'm doing a project on accessibility analysis in Hannover using QGIS 3.26.1 and everything went well. Creating a service area was ok, but when I use the explode function, the loading bar just shows an ...
2
votes
1
answer
1k
views
How to convert polygons to line segments using Python
I have one shapefile with building polygons.
I would like to convert them into lines split at each vertex, keeping the original source info as an attribute (Name).
Name category height_ag ...
4
votes
3
answers
507
views
Difference in QGIS multipart to single parts and geopandas.explode()
I noticed that QGIS tool multipart to single parts produces different results than geopandas explode when used to MultiLineString geometries.
Having a multiple lines which are randomly split along ...
5
votes
2
answers
2k
views
Exploding LineString into segments using Shapely
I am trying to find explode lines tool in QGIS equivalent in shapely or geopandas (which uses shapely anyway). does anyone know this?
note that geopandas.GeoDataFrame.explode() does not work because ...
1
vote
0
answers
186
views
Exploding multipart feature if different parts are over certain distance using ArcMap
I'm using ArcMap 10.4 and working with parcel data. I'm trying to come up with a way to combine parcels owned by the same person that are close to each other, but leave parcels that are further out as ...
6
votes
1
answer
3k
views
Exploding column in GeoPandas
I have a shp with a column NOM_CONCAT and I can not explode it to have a unique information,
Each time, I have the same error message and I can't find solutions.
#TypeError: explode() takes 1 ...
1
vote
0
answers
33
views
Create multiple features from a single field
I have a point feature class showing addresses where trees were planted. A single row in the attribute table represents a single address. I have a field in the attribute table called "...
0
votes
0
answers
888
views
ogr2ogr: How to export / explode GeoJSON features from collections into separate files
I would like to use an ogr2ogr command to export features as multiple separate geojson files from a single GeoJSON feature collection. I have tried using the -explodecollections command but I am ...
2
votes
2
answers
1k
views
Join point attributes to lines
I'm working in QGIS with two shapefiles: point and line. Points mark nodes of the lines, and each of them have their own attributes. Lines are related to an attribute table too. The goal is, once the ...
0
votes
1
answer
3k
views
Why gdf.explode() doesn't work?
I'm trying to merge 2 geodataframes and combine all entities.
So I use :
cloudNshadow = gpd.overlay(cloud, shadow, how='union')
cloudNshadow = cloudNshadow.unary_union()
But it returns me :
...
1
vote
1
answer
314
views
Access qgis.explodelines in Python (outside QGIS)
I want to access the explodelines function in Python outside of QGIS from a standalone script.
import sip
for api in ["QDate", "QDateTime", "QString", "QTextStream", "QTime", "QUrl", "QVariant"]:
...
6
votes
2
answers
2k
views
equivalent Explode lines in Postgis
I want to divide linestring into separate segments via Postgis, like it "Explode lines" tool in QGIS does, e.g. from linestring
I want to get separate segments
I have some thoughts about take it by ...
9
votes
2
answers
680
views
Exploding polygons and adding consistent space/buffer between groups using QGIS?
I have a set of shapefiles grouped by regional area in Western Australia. What I want to do for visual purposes is add a consistent amount of space between each region. What's the best way to do this? ...
1
vote
1
answer
3k
views
Exploding multipart features in qgis using python [duplicate]
I want to explode a multipart layer to singlepart in python. I see through the qgis gui there is a way to do it under vector--geometry--tools--Multipart to Singleparts.. which does what I need, I just ...
2
votes
1
answer
275
views
QGIS explode line function fails with OSM file
I am exporting a small extract from OSM. I load the lines(layer 1) into QGIS and apply the function Explode lines. I get the error:
Algorithm Explode lines starting...
__len__() should return >= 0 ...
20
votes
2
answers
19k
views
Accessing QGIS processing with PyQGIS
I want to access the explode lines function in Python outside of QGIS from a standalone script.
What module do I have to load in order to use it?
How can I access processing?
from qgis.core import *
...
0
votes
2
answers
807
views
Explode/Decompose Polyline Network with MapInfo
I have a network of polylines which possibly include multi polylines as well. I wish to decompose these polylines into their fundemental line segments so I can produce the following table:
Link_ID | ...
1
vote
1
answer
178
views
How do I create multiple polylines from single polyline that consists of disjunct sections?
My goal was to create a network of polylines in NHD plus based on start and end points associated with sampling locations. Dissolving by stream name was my first step and has worked just fine for ...
11
votes
2
answers
8k
views
Exploding MULTILINESTRING into individual segments in PostGIS
I have a MULTILINESTRING in PostGIS consisting of several LINESTRING's. Consider each LINESTRING to have a set of POINT's
P1, P2, ... PN
forming the line segments
L1, L2, ... LN-1
where LX is ...