title: How to create a Shapely LineString from two arrays of points
body: <p>I am trying to create a single LineString object of two arrays. I've tried this a multiple of ways, but I keep getting :</p>
  
  <pre><code>&gt;&gt;&gt; array = [(0,0),(1,0),(2,0),(3,0)][(1,3),(1.4,2),(2,0)]
  </code></pre>
  
  <p><code>TypeError: list indices must be integers, not tuple</code></p>
  
  <pre><code>##      A
  ##       \
  ##        \
  ##         X
  ##          \
  ##           \
  ## B-----C-----D-----F
  
  ## Test to Identify Junctions - Shared points where two or more lines intersect
  
  def test_find_junctions(self):
      g = PreserveTopology()
      # LINE BCDF, AXD
      array = [(0,0),(1,0),(2,0),(3,0)][(1,3),(1.4,2),(2,0)]
      # LINE AXD
      #array2 = [(1,3),(1.4,2),(2,0)]
      array_as_linestring = LineString(array)
      #array2_as_linestring = LineString(array2)
      result = g.find_junctions_line(array_as_linestring)
      assert_equal(result,(2,0))
  </code></pre>