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".

Filter by
Sorted by
Tagged with
4 votes
2 answers
57 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 ...
user avatar
  • 159
1 vote
2 answers
152 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 ...
user avatar
  • 680
0 votes
0 answers
32 views

expand polygons in geopandas so that they dont overlap each other

I have a list of of ploygons that have areas mapped out on a map Zones value geometry 1 1693 POLYGON ((77.29454313715819 28.47571416392315, 77.3199164281738 28.49027682729388, 77....
user avatar
  • 95
1 vote
0 answers
35 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 ...
user avatar
6 votes
1 answer
1k 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 ...
user avatar
1 vote
0 answers
18 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 "...
user avatar
  • 31
0 votes
0 answers
595 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 ...
user avatar
2 votes
2 answers
953 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 ...
user avatar
  • 21
0 votes
1 answer
2k 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 : ...
user avatar
  • 1,386
1 vote
1 answer
303 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"]: ...
user avatar
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 ...
user avatar
  • 1,015
8 votes
2 answers
551 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? ...
user avatar
  • 105
1 vote
1 answer
2k 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 ...
user avatar
  • 1,386
2 votes
1 answer
265 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 ...
user avatar
  • 7,644
19 votes
2 answers
16k 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 * ...
user avatar
  • 7,644
0 votes
2 answers
783 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 | ...
user avatar
1 vote
1 answer
153 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 ...
user avatar
11 votes
1 answer
7k 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 ...
user avatar
  • 4,322