Skip to content

Commit

Permalink
Update contrib.gis.gdal.geometries (#2460)
Browse files Browse the repository at this point in the history
Signed-off-by: SaJH <wogur981208@gmail.com>
  • Loading branch information
JaeHyuckSa authored Dec 6, 2024
1 parent 786f735 commit 2b3b079
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
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 @@ -43,17 +43,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

0 comments on commit 2b3b079

Please sign in to comment.