Comments (2)
Hi Lucas,
Thank you for the kind words!
The documentation of the built-in K-Means clustering tool in QGIS 3.4 states
If input geometries are lines or polygons, the clustering is based on the centroid of the feature.
The clustering we implemented in https://github.com/dts-ait/qgis-edge-bundling/blob/master/cluster_lines_kmeans.py uses start and end points instead and lines are clustered irrespective of direction.
I'm not aware of any current plans to port the old script but if you're interested in looking into it, that would be a very welcome contribution!
from qgis-edge-bundling.
Hi Anita,
Thank you for your quick reply.
Ah yes, I see.. clustering on centroid seems to be quite suboptimal for my use-case. Perhaps I can do k-means clustering twice manually on (1) start-points and (2) end-points, and build new clusters from the permutations. That way the clusters would even take direction into consideration 🤔
I have to see if I can find the time to spend on porting, but I must say I am not familiar with the PyQGIS API.
Thanks again!
from qgis-edge-bundling.
Related Issues (20)
- Tips for 3.0 port HOT 7
- Use edge bundle data with kepler.gl HOT 2
- Bundling fails on Multilinestring HOT 5
- Add option to ignore clustering in summarize tool
- UnboundLocalError: local variable 'visibility1' referenced before assignment HOT 2
- QGIS 3.6 and Python 3 importing issues HOT 2
- Installing from ZIP HOT 2
- Support Python 3? HOT 1
- ERROR: "range() integer end argument expected, got float." when running the edge bundling tool
- Edge bundling without qgis HOT 1
- Usage in QGIS 3 HOT 5
- ModuleNotFoundError: No module named 'processing.core.ProcessingLog' HOT 5
- Bundling fails on datasets including zero length lines HOT 6
- Configuring edge bundling parameters for regional UK data in WGS84 HOT 17
- Step-by-step tutorial? HOT 4
- Add documentation about script options HOT 1
- Provide better warning when input is not in OD format (straight lines with only start and end node) HOT 35
- Time-series animation of edge bundles?
- Error in "cluster lines kmeans with ideal number of clusters" when not WGS84 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qgis-edge-bundling.