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