def elevation_profile(self): if not self.geom: return [] return elevation_profile(self.geom, maxitems=settings.PROFILE_MAXSIZE)
def get_elevation_profile(self): """ Extract elevation profile from path. """ return elevation_profile(self.geom, maxitems=settings.PROFILE_MAXSIZE)