Пример #1
0
    def mbr_within(self, geom):
        return func.MBRWithin(literal(self, Geometry),
			literal(_to_gis(geom), Geometry))
Пример #2
0
    def mbr_contains(self, geom):
        return func.MBRContains(literal(self, Geometry),
			literal(_to_gis(geom), Geometry))
Пример #3
0
    def covers(self, geom):
        return func.Covers(literal(self, Geometry),
			literal(_to_gis(geom), Geometry))
Пример #4
0
    def mbr_disjoint(self, geom):
        return func.MBRDisjoint(literal(self, Geometry),
			literal(_to_gis(geom), Geometry))
Пример #5
0
    def covered_by(self, geom):
        return func.ST_CoveredBy(literal(self, Geometry),
			literal(_to_gis(geom), Geometry))
Пример #6
0
 def set(self, state, value, oldvalue, initiator):
     return _to_gis(value, self.__get_srid(initiator))
Пример #7
0
    def disjoint(self, other):
        return func.ST_Disjoint(self.__clause_element__(),
			literal(_to_gis(other), GeometryBase))
Пример #8
0
    def overlaps(self, geom):
        return func.ST_Overlaps(literal(self, Geometry),
			literal(_to_gis(geom), Geometry))
Пример #9
0
    def equals(self, other):
        return func.ST_Equals(self.__clause_element__(),
			literal(_to_gis(other), GeometryBase))
Пример #10
0
    def within_distance(self, other, distance=0.0):
        return func.ST_DWithin(self.__clause_element__(),
			literal(_to_gis(other), GeometryBase), distance)
Пример #11
0
    def mbr_contains(self, other):
        return func.MBRContains(self.__clause_element__(),
			literal(_to_gis(other), GeometryBase))
Пример #12
0
    def mbr_overlaps(self, other):
        return func.MBROverlaps(self.__clause_element__(),
			literal(_to_gis(other), GeometryBase))
Пример #13
0
    def mbr_within(self, other):
        return func.MBRWithin(self.__clause_element__(),
			literal(_to_gis(other), GeometryBase))
Пример #14
0
    def mbr_touches(self, other):
        return func.MBRTouches(self.__clause_element__(),
			literal(_to_gis(other), GeometryBase))
Пример #15
0
    def mbr_touches(self, geom):
        return func.MBRTouches(literal(self, Geometry),
			literal(_to_gis(geom), Geometry))
Пример #16
0
    def within(self, geom):
        return func.ST_Within(literal(self, Geometry),
			literal(_to_gis(geom), Geometry))
Пример #17
0
 def mbr_crosses(self, geom):
     return func.MBRCrosses(literal(self, Geometry),
 			literal(_to_gis(geom), Geometry))
Пример #18
0
    def gcontains(self, geom):
        return func.ST_Contains(literal(self, Geometry),
			literal(_to_gis(geom), Geometry))
Пример #19
0
 def set(self, state, value, oldvalue, initiator):
     return _to_gis(value, self.__get_srid(initiator))
Пример #20
0
    def intersection(self, geom):
        return func.ST_Intersection(literal(self, Geometry),
			literal(_to_gis(geom), Geometry))
Пример #21
0
 def set(self, state, value, oldvalue, initiator):
     return _to_gis(value)
Пример #22
0
    def equals(self, geom):
        return func.Equals(literal(self, Geometry),
			literal(_to_gis(geom), Geometry))
Пример #23
0
    def distance(self, geom):
        return func.ST_Distance(literal(self, Geometry),
			literal(_to_gis(geom), Geometry))
Пример #24
0
    def mbr_within_distance(self, geom, distance=0.0):
        return func.MBRDWithin(literal(self, Geometry),
			literal(_to_gis(geom), Geometry), distance)
Пример #25
0
    def disjoint(self, geom):
        return func.ST_Disjoint(literal(self, Geometry),
			literal(_to_gis(geom), Geometry))
Пример #26
0
    def mbr_intersects(self, geom):
        return func.MBRIntersects(literal(self, Geometry),
			literal(_to_gis(geom), Geometry))
Пример #27
0
    def touches(self, geom):
        return func.ST_Touches(literal(self, Geometry),
			literal(_to_gis(geom), Geometry))
Пример #28
0
    def mbr_overlaps(self, geom):
        return func.MBROverlaps(literal(self, Geometry),
			literal(_to_gis(geom), Geometry))
Пример #29
0
 def crosses(self, geom):
     return func.ST_Crosses(literal(self, Geometry),
 			literal(_to_gis(geom), Geometry))
Пример #30
0
    def mbr_covered_by(self, geom):
        return func.MBRCoveredBy(literal(self, Geometry),
			literal(_to_gis(geom), Geometry))
Пример #31
0
    def mbr_intersects(self, other):
        return func.MBRIntersects(self.__clause_element__(),
			literal(_to_gis(other), GeometryBase))