def __len__(self):
        if self.empty: return 0
        if self.hasz: return 3
        else: return 2
Returns the number of dimensions for this Point (either 0, 2 or 3).
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/gis/geos/point.py/Point.__len__