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 for Django 5.1 #2587

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

adamchainz
Copy link
Contributor

I have made things!

From django/django@08306ba:

  • In django.contrib.gis.gdal.prototypes.raster, these were removed:

    • register_all
    • get_driver
    • get_driver_by_name
    • get_driver_count
    • get_driver_description
  • In django.contrib.gis.gdal.prototypes.ds, these were added:

    • GDAL_OF_READONLY
    • GDAL_OF_UPDATE
    • GDAL_OF_ALL
    • GDAL_OF_RASTER
    • GDAL_OF_VECTOR
    • get_driver_description
    • get_dataset_driver
  • In django.contrib.gis.gdal.prototypes.ds, these were removed:

    • get_driver_name
    • release_ds

From django/django@3f6d939:

  • In django.contrib.gis.gdal.geometries, these were added:
    • LineString.m
    • Point.m
  • In django.contrib.gis.gdal.prototypes.geom, these were added:
    • getm
    • is_measured
    • set_measured
    • to_iso_wkb
    • to_iso_wkt

From django/django@cfacd69:

  • In django.contrib.gis.gdal.prototypes.geom, these were added:
    • is_3d
    • set_3d

Related issues

n/a

From django/django@08306ba:

* In `django.contrib.gis.gdal.prototypes.raster`, these were removed:
  * `register_all`
  * `get_driver`
  * `get_driver_by_name`
  * `get_driver_count`
  * `get_driver_description`

* In `django.contrib.gis.gdal.prototypes.ds`, these were added:
  * `GDAL_OF_READONLY`
  * `GDAL_OF_UPDATE`
  * `GDAL_OF_ALL`
  * `GDAL_OF_RASTER`
  * `GDAL_OF_VECTOR`
  * `get_driver_description`
  * `get_dataset_driver`

* In `django.contrib.gis.gdal.prototypes.ds`, these were removed:
  * `get_driver_name`
  * `release_ds`

From django/django@3f6d939:

* In `django.contrib.gis.gdal.geometries`, these were added:
  - `LineString.m`
  - `Point.m`
* In `django.contrib.gis.gdal.prototypes.geom`, these were added:
  - `getm`
  - `is_measured`
  - `set_measured`
  - `to_iso_wkb`
  - `to_iso_wkt`

From django/django@cfacd69:

* In `django.contrib.gis.gdal.prototypes.geom`, these were added:
  - `is_3d`
  - `set_3d`
@adamchainz adamchainz requested a review from sobolevn March 26, 2025 22:09
Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! One question.

@@ -1,16 +1,21 @@
from typing import Any

c_int_p: Any
GDAL_OF_READONLY: int = 0x00
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe : Final =?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants