Implementation of MultiPolygonZMField in GeoDjango/django

I have an .shp file and the ogrinfo resulted as follow

# ogrinfo -so AnalysisV1.shp AnalysisV1

INFO: Open of `AnalysisV1.shp'
      using driver `ESRI Shapefile' successful.

Layer name: AnalysisV1
Metadata:
  DBF_DATE_LAST_UPDATE=2025-06-23
Geometry: 3D Measured Polygon
Feature Count: 223252
Extent: (105.072679, -8.808389) - (116.270615, -4.224575)
Layer SRS WKT:
GEOGCRS["WGS 84",
    DATUM["World Geodetic System 1984",
        ELLIPSOID["WGS 84",6378137,298.257223563,
            LENGTHUNIT["metre",1]]],
    PRIMEM["Greenwich",0,
        ANGLEUNIT["degree",0.0174532925199433]],
    CS[ellipsoidal,2],
        AXIS["latitude",north,
            ORDER[1],
            ANGLEUNIT["degree",0.0174532925199433]],
        AXIS["longitude",east,
            ORDER[2],
            ANGLEUNIT["degree",0.0174532925199433]],
    ID["EPSG",4326]]
Data axis to CRS axis mapping: 2,1
OBJECTID_1: Integer64 (10.0)
FID_jawa_p: Integer64 (10.0)
objectid: Integer64 (10.0)
kriteria: String (50.0)
kodeprov: Real (19.11)

I've tried to generate the model using ogrinspect

./manage.py ogrinspect AnalysisV1.shp  Analysis --srid=4326 --mapping --multi

and model generated as follow

from django.contrib.gis.db import models


class Analysis(models.Model):
    objectid_1 = models.BigIntegerField()
    fid_jawa_p = models.BigIntegerField()
    objectid = models.BigIntegerField()
    kriteria = models.CharField(max_length=50)
    kodeprov = models.FloatField()
    geom = models.MultiPolygonZMField(srid=4326)

When I check the django.contrib.gis.db.models, there is no MultiPolygonZMField implementation.

How the ogrinspect use that Field whilst MultiPolygonZMField not defined?

Is there any MultiPolygonZMField implementation on GeoDjango? or model field compatible ?

after digging on django tickets, it's still work in progress

https://code.djangoproject.com/ticket/36036

Вернуться на верх