How to use the movingpandas.overlay.intersection function in movingpandas

To help you get started, we’ve selected a few movingpandas examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github anitagraser / movingpandas / movingpandas / trajectory.py View on Github external
If pointbased=True, the trajectory's point representation is used instead, leading to shorter
        segments.

        Parameters
        ----------
        feature : shapely Feature
            Feature to intersect with
        pointbased : bool
            Clipping method

        Returns
        -------
        Trajectory
            Trajectory segment intersecting with the feature
        """
        return intersection(self, feature, pointbased)