GeoShapeField is used to enable within/contain indexing/searching
| 119 | |
| 120 | |
| 121 | class GeoShapeField(Field): |
| 122 | """ |
| 123 | GeoShapeField is used to enable within/contain indexing/searching |
| 124 | """ |
| 125 | |
| 126 | SPHERICAL = "SPHERICAL" |
| 127 | FLAT = "FLAT" |
| 128 | |
| 129 | def __init__(self, name: str, coord_system=None, **kwargs): |
| 130 | args = [Field.GEOSHAPE] |
| 131 | if coord_system: |
| 132 | args.append(coord_system) |
| 133 | Field.__init__(self, name, args=args, **kwargs) |
| 134 | |
| 135 | |
| 136 | class GeoField(Field): |
no outgoing calls