def __init__(self, paths=[], spatialReference=None):
        """
        @param paths: A list of lists of points. Actual acceptable values are
                      fairly permissive, allowing for any iterable item 
                      (list, tuple, generator) containing any number of 
                      iterables containing instances of 
                      L{Point<arcrest.geometry.Point>} or lists/tuples of
                      exactly two items, representing a coordinate pair.

        @param spatialReference: A spatial reference passed in as an instance
                                 of SpatialReference or the WKID of a spatial
                                 reference. If this is not set, the Polyline
                                 will not have a spatial reference and if the
                                 polyline is used in a context where a spatial
                                 reference is required, it will attempt to
                                 guess the spatial reference from the set
                                 spatial reference of a constitutent point.
        """
        if not isinstance(spatialReference, SpatialReference):
            spatialReference = SpatialReference(spatialReference)
        self.spatialReference = spatialReference
        self.paths = listofpointlist(paths, spatialReference)
def __init__ ( self , paths = [ ] , spatialReference = None ) : if not isinstance ( spatialReference , SpatialReference ) : spatialReference = SpatialReference ( spatialReference ) self . spatialReference = spatialReference self . paths = listofpointlist ( paths , spatialReference )
@param paths: A list of lists of points. Actual acceptable values are
                      fairly permissive, allowing for any iterable item 
                      (list, tuple, generator) containing any number of 
                      iterables containing instances of 
                      L{Point<arcrest.geometry.Point>} or lists/tuples of
                      exactly two items, representing a coordinate pair.

        @param spatialReference: A spatial reference passed in as an instance
                                 of SpatialReference or the WKID of a spatial
                                 reference. If this is not set, the Polyline
                                 will not have a spatial reference and if the
                                 polyline is used in a context where a spatial
                                 reference is required, it will attempt to
                                 guess the spatial reference from the set
                                 spatial reference of a constitutent point.