MCPcopy
hub / github.com/django/django / as_sqlite

Method as_sqlite

django/contrib/gis/db/models/functions.py:555–558  ·  view source on GitHub ↗
(self, compiler, connection, **extra_context)

Source from the content-addressed store, hash-verified

553 return super().as_sql(compiler, connection, function=function, **extra_context)
554
555 def as_sqlite(self, compiler, connection, **extra_context):
556 if self.geo_field.geodetic(connection):
557 raise NotSupportedError("Perimeter cannot use a non-projected field.")
558 return super().as_sql(compiler, connection, **extra_context)
559
560
561class PointOnSurface(OracleToleranceMixin, GeomOutputGeoFunc):

Callers

nothing calls this directly

Calls 3

NotSupportedErrorClass · 0.90
geodeticMethod · 0.80
as_sqlMethod · 0.45

Tested by

no test coverage detected