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

Expose QgsGeos class to PyQGIS #59749

Merged
merged 4 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions python/PyQt6/core/auto_additions/qgsgeos.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# The following has been generated automatically from src/core/geometry/qgsgeos.h
try:
QgsGeos.__group__ = ['geometry']
except (NameError, AttributeError):
pass
10 changes: 10 additions & 0 deletions python/PyQt6/core/auto_generated/geometry/qgsgeometryengine.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@



%ModuleHeaderCode
#include <qgsgeos.h>
%End

class QgsGeometryEngine
{
%Docstring(signature="appended")
Expand Down Expand Up @@ -52,6 +56,12 @@ Example

%TypeHeaderCode
#include "qgsgeometryengine.h"
%End
%ConvertToSubClassCode
if ( dynamic_cast< QgsGeos * >( sipCpp ) != NULL )
sipType = sipType_QgsGeos;
else
sipType = NULL;
%End
public:

Expand Down
719 changes: 719 additions & 0 deletions python/PyQt6/core/auto_generated/geometry/qgsgeos.sip.in

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions python/PyQt6/core/core_auto.sip
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@
%Include auto_generated/geometry/qgsgeometrytransformer.sip
%Include auto_generated/geometry/qgsgeometryutils.sip
%Include auto_generated/geometry/qgsgeometryutils_base.sip
%Include auto_generated/geometry/qgsgeos.sip
%Include auto_generated/geometry/qgslinesegment.sip
%Include auto_generated/geometry/qgslinestring.sip
%Include auto_generated/geometry/qgsmulticurve.sip
Expand Down
5 changes: 5 additions & 0 deletions python/core/auto_additions/qgsgeos.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# The following has been generated automatically from src/core/geometry/qgsgeos.h
try:
QgsGeos.__group__ = ['geometry']
except (NameError, AttributeError):
pass
10 changes: 10 additions & 0 deletions python/core/auto_generated/geometry/qgsgeometryengine.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@



%ModuleHeaderCode
#include <qgsgeos.h>
%End

class QgsGeometryEngine
{
%Docstring(signature="appended")
Expand Down Expand Up @@ -52,6 +56,12 @@ Example

%TypeHeaderCode
#include "qgsgeometryengine.h"
%End
%ConvertToSubClassCode
if ( dynamic_cast< QgsGeos * >( sipCpp ) != NULL )
sipType = sipType_QgsGeos;
else
sipType = NULL;
%End
public:

Expand Down
Loading
Loading