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

Update contrib.gis.gdal.geometries #2460

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
8 changes: 8 additions & 0 deletions django-stubs/contrib/gis/gdal/geometries.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ class OGRGeometry(GDALBase):
def empty(self) -> bool: ...
@property
def extent(self) -> tuple[float, float, float, float]: ...
@property
def is_3d(self) -> bool: ...
def set_3d(self, value: bool) -> None: ...
@property
def is_measured(self) -> bool: ...
def set_measured(self, value: bool) -> None: ...
srid: int | None
@property
def geos(self) -> GEOSGeometry: ...
Expand Down Expand Up @@ -84,6 +90,8 @@ class OGRGeometry(GDALBase):
def intersection(self, other: OGRGeometry) -> OGRGeometry: ...
def sym_difference(self, other: OGRGeometry) -> OGRGeometry: ...
def union(self, other: OGRGeometry) -> OGRGeometry: ...
@property
def centroid(self) -> Point: ...

class Point(OGRGeometry):
@property
Expand Down
10 changes: 0 additions & 10 deletions scripts/stubtest/allowlist_todo_django51.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,7 @@ django.contrib.gis.db.models.functions.FromWKB.output_field
django.contrib.gis.db.models.functions.FromWKT.output_field
django.contrib.gis.forms.ModelChoiceField.validate_no_null_characters
django.contrib.gis.forms.RadioSelect.__slotnames__
django.contrib.gis.gdal.OGRGeometry.centroid
django.contrib.gis.gdal.OGRGeometry.is_3d
django.contrib.gis.gdal.OGRGeometry.is_measured
django.contrib.gis.gdal.OGRGeometry.set_3d
django.contrib.gis.gdal.OGRGeometry.set_measured
django.contrib.gis.gdal.geometries.LineString.m
django.contrib.gis.gdal.geometries.OGRGeometry.centroid
django.contrib.gis.gdal.geometries.OGRGeometry.is_3d
django.contrib.gis.gdal.geometries.OGRGeometry.is_measured
django.contrib.gis.gdal.geometries.OGRGeometry.set_3d
django.contrib.gis.gdal.geometries.OGRGeometry.set_measured
django.contrib.gis.gdal.geometries.Point.m
django.contrib.gis.gdal.prototypes.ds.GDAL_OF_ALL
django.contrib.gis.gdal.prototypes.ds.GDAL_OF_RASTER
Expand Down
Loading