def mbr_within(self, geom): return func.MBRWithin(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def mbr_contains(self, geom): return func.MBRContains(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def covers(self, geom): return func.Covers(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def mbr_disjoint(self, geom): return func.MBRDisjoint(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def covered_by(self, geom): return func.ST_CoveredBy(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def set(self, state, value, oldvalue, initiator): return _to_gis(value, self.__get_srid(initiator))
def disjoint(self, other): return func.ST_Disjoint(self.__clause_element__(), literal(_to_gis(other), GeometryBase))
def overlaps(self, geom): return func.ST_Overlaps(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def equals(self, other): return func.ST_Equals(self.__clause_element__(), literal(_to_gis(other), GeometryBase))
def within_distance(self, other, distance=0.0): return func.ST_DWithin(self.__clause_element__(), literal(_to_gis(other), GeometryBase), distance)
def mbr_contains(self, other): return func.MBRContains(self.__clause_element__(), literal(_to_gis(other), GeometryBase))
def mbr_overlaps(self, other): return func.MBROverlaps(self.__clause_element__(), literal(_to_gis(other), GeometryBase))
def mbr_within(self, other): return func.MBRWithin(self.__clause_element__(), literal(_to_gis(other), GeometryBase))
def mbr_touches(self, other): return func.MBRTouches(self.__clause_element__(), literal(_to_gis(other), GeometryBase))
def mbr_touches(self, geom): return func.MBRTouches(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def within(self, geom): return func.ST_Within(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def mbr_crosses(self, geom): return func.MBRCrosses(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def gcontains(self, geom): return func.ST_Contains(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def intersection(self, geom): return func.ST_Intersection(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def set(self, state, value, oldvalue, initiator): return _to_gis(value)
def equals(self, geom): return func.Equals(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def distance(self, geom): return func.ST_Distance(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def mbr_within_distance(self, geom, distance=0.0): return func.MBRDWithin(literal(self, Geometry), literal(_to_gis(geom), Geometry), distance)
def disjoint(self, geom): return func.ST_Disjoint(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def mbr_intersects(self, geom): return func.MBRIntersects(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def touches(self, geom): return func.ST_Touches(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def mbr_overlaps(self, geom): return func.MBROverlaps(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def crosses(self, geom): return func.ST_Crosses(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def mbr_covered_by(self, geom): return func.MBRCoveredBy(literal(self, Geometry), literal(_to_gis(geom), Geometry))
def mbr_intersects(self, other): return func.MBRIntersects(self.__clause_element__(), literal(_to_gis(other), GeometryBase))