       # We don't have discontinuous objects so we're ok
       return @_get_snap_coord(@sys[i])
     else
-      # We have discontinuous objects, so we need to find which 
+      # We have discontinuous objects, so we need to find which
       # one we're in, we can use point_in_poly again
       sxs = @sxss[i]
       sys = @syss[i]

      # We don't have discontinuous objects so we're ok
      return @_get_snap_coord(@sxs[i])
    else
      # We have discontinuous objects, so we need to find which 
      # one we're in, we can use point_in_poly again
      sxs = @sxss[i]
      sys = @syss[i]

      while qs.length > 0

        nan_index = _.findLastIndex(qs, (q) ->  _.isNaN(q))

        if nan_index >= 0
          qs_part = qs.splice(nan_index)
        else
