Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polyline vs. MultiLineString #57348

Open
Holzhauer opened this issue May 6, 2024 · 0 comments
Open

Polyline vs. MultiLineString #57348

Holzhauer opened this issue May 6, 2024 · 0 comments
Labels
API API improvement only, no visible user interface changes Documentation Changes to Documentation, README, INSTALL, etc PyQGIS Related to the PyQGIS API

Comments

@Holzhauer
Copy link

What is the issue about the documentation?

Whereas for geometry construction the term "polyline" is used (fromPolyline()), for layer construction the term "MultiLineString" is required (vl = QgsVectorLayer("MultiLineString", "temporary_points", "memory")). This is confusing and should at least be reported in the documentation. This is the more important as no error or warning is thrown when attempting to add a polyline feature to a e.g. polygon layer.

@Holzhauer Holzhauer added API API improvement only, no visible user interface changes Documentation Changes to Documentation, README, INSTALL, etc PyQGIS Related to the PyQGIS API labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API API improvement only, no visible user interface changes Documentation Changes to Documentation, README, INSTALL, etc PyQGIS Related to the PyQGIS API
Projects
None yet
Development

No branches or pull requests

1 participant